Skip to content

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

:art: Improve database attribute panel number field formating https://github.com/siyuan-note/siyuan/issues/12491

Daniel539c96a587f9
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index c98a671818..b23fd6a3ce 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -3051,6 +3051,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
val.Number.Content = 0
val.Number.FormattedContent = ""
}
+ val.Number.FormatNumber()
} else if av.KeyTypeDate == val.Type {
if nil != val.Date && !val.Date.IsNotEmpty {
val.Date.Content = 0