An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Clean code
Daniel5a3fc75f289b
diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex 44faa5bf4f..084072452a 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -131,7 +131,7 @@ func autoPurgeRepo(cron bool) {}todayDate := now.Format("2006-01-02")- // 筛选出每日需要保留的索引+ // 过滤出每日需要保留的索引var retentionIndexIDs []stringfor date, indexes := range dateGroupedIndexes {if len(indexes) <= Conf.Repo.RetentionIndexesDaily || todayDate == date {