This commit is contained in:
Daniel 2025-08-09 20:39:12 +08:00
parent 51766ed0c0
commit 7b1b36d3ab
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 26 additions and 22 deletions

View file

@ -92,7 +92,7 @@ func renderAttributeViewGroups(viewable av.Viewable, attrView *av.AttributeView,
if isGroupByDate(view) {
createdDate := time.UnixMilli(view.GroupCreated).Format("2006-01-02")
if time.Now().Format("2006-01-02") != createdDate {
regenAttrViewViewGroups(attrView, "force")
regenAttrViewGroups(attrView, "force")
av.SaveAttributeView(attrView)
}
}
@ -108,7 +108,7 @@ func renderAttributeViewGroups(viewable av.Viewable, attrView *av.AttributeView,
for _, groupView := range view.Groups {
if "" == groupView.GetGroupValue() && !fixDev {
// TODO 分组上线后删除,预计 2025 年 9 月后可以删除
regenAttrViewViewGroups(attrView, "force")
regenAttrViewGroups(attrView, "force")
av.SaveAttributeView(attrView)
fixDev = true
}