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
4df41234a2
commit
5a3fc75f28
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ func autoPurgeRepo(cron bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
todayDate := now.Format("2006-01-02")
|
todayDate := now.Format("2006-01-02")
|
||||||
// 筛选出每日需要保留的索引
|
// 过滤出每日需要保留的索引
|
||||||
var retentionIndexIDs []string
|
var retentionIndexIDs []string
|
||||||
for date, indexes := range dateGroupedIndexes {
|
for date, indexes := range dateGroupedIndexes {
|
||||||
if len(indexes) <= Conf.Repo.RetentionIndexesDaily || todayDate == date {
|
if len(indexes) <= Conf.Repo.RetentionIndexesDaily || todayDate == date {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue