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

Daniele575324483cd
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 5577459ce0..a4385fc246 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1825,8 +1825,8 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
startIdx := -1
thisMonth := todayStart.Format("2006-01")
for i, monthGroup := range relativeDateGroups {
- if monthGroup.GroupValue > thisMonth {
- startIdx = i
+ if monthGroup.GroupValue < thisMonth {
+ startIdx = i + 1
}
}
if -1 == startIdx {