Skip to content

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

:art: Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958

Daniel89158e77e283
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 29f3aca01b..cada7e4ddf 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -252,7 +252,7 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
destVal.Number.FormatNumber()
}
- kv.Values[0].Rollup.Contents = append(kv.Values[0].Rollup.Contents, destAv.GetValue(kv.Key.Rollup.KeyID, bID).String())
+ kv.Values[0].Rollup.Contents = append(kv.Values[0].Rollup.Contents, destVal.String())
}
kv.Values[0].Rollup.RenderContents(kv.Key.Rollup.Calc)