Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964

Danieldf73431112c5
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 5791ecc29c..0f601238ac 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1694,7 +1694,7 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
groupName = "8" + contentTime.Format("2006-01")
} else if contentTime.After(todayStart.AddDate(0, 0, 7)) {
groupName = "7" + groupNameNext30Days
- } else if contentTime.After(todayStart.AddDate(0, 0, 1)) {
+ } else if contentTime.Equal(todayStart.AddDate(0, 0, 2)) || contentTime.After(todayStart.AddDate(0, 0, 2)) {
groupName = "6" + groupNameNext7Days
} else {
groupName = "5" + groupNameTomorrow