mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
00e6891ea0
commit
9372119bc3
1 changed files with 1 additions and 1 deletions
|
|
@ -1959,7 +1959,7 @@ func genAttrViewGroups(view *av.View, attrView *av.AttributeView) {
|
|||
// 过去 30 天、过去 7 天、昨天、今天、明天、未来 7 天、未来 30 天
|
||||
// 未来 30 天之后的按月分组
|
||||
if contentTime.Before(todayStart.AddDate(0, 0, -30)) {
|
||||
groupVal = contentTime.Format("2006-01") // 开头的数字用于排序,下同
|
||||
groupVal = contentTime.Format("2006-01") // 开头的数字用于排序
|
||||
} else if contentTime.Before(todayStart.AddDate(0, 0, -7)) {
|
||||
groupVal = groupValueLast30Days
|
||||
} else if contentTime.Before(todayStart.AddDate(0, 0, -1)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue