Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Correct aggregated Other count in data snapshots https://github.com/siyuan-note/siyuan/issues/19398

Daniela0c881ebfbbc
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index b7dac588bc..642ff01bfd 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1065,7 +1065,7 @@ func statTypesByPath(files []*entity.File) (ret []*TypeCount) {
if 10 < len(ret) {
otherCount := 0
for _, tc := range ret[10:] {
- tc.Count += otherCount
+ otherCount += tc.Count
}
other := &TypeCount{
Type: "Other",