From e575324483cd9e5487e3241279e5eb115a9f1c16 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 29 Jul 2025 13:51:01 +0800 Subject: [PATCH] :art: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964 --- kernel/model/attribute_view.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 5577459ce..a4385fc24 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 {