mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
75dd28b294
commit
c1fd1cebef
1 changed files with 7 additions and 5 deletions
|
|
@ -1572,12 +1572,14 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
|
|||
groupName = groupNameToday
|
||||
} else if contentTime.Equal(now.AddDate(0, 0, 1)) {
|
||||
groupName = groupNameTomorrow
|
||||
} else if contentTime.Before(now.AddDate(0, 0, 7)) {
|
||||
groupName = groupNameNext7Days
|
||||
} else if contentTime.Before(now.AddDate(0, 0, 30)) {
|
||||
groupName = groupNameNext30Days
|
||||
} else {
|
||||
} else if contentTime.After(now.AddDate(0, 0, 30)) {
|
||||
groupName = contentTime.Format("2006-01")
|
||||
} else if contentTime.After(now.AddDate(0, 0, 7)) {
|
||||
groupName = groupNameNext30Days
|
||||
} else if contentTime.After(now.AddDate(0, 0, 1)) {
|
||||
groupName = groupNameNext7Days
|
||||
} else {
|
||||
groupName = notInRange
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue