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: Improve av https://github.com/siyuan-note/siyuan/issues/15529
Daniel68af39ba489f
diff --git a/kernel/sql/av.go b/kernel/sql/av.goindex f7d3d18683..bdef3d565a 100644--- a/kernel/sql/av.go+++ b/kernel/sql/av.go@@ -434,7 +434,19 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collectionkeyValues = append(keyValues, &av.KeyValues{Key: relKey, Values: []*av.Value{{ID: value.ID, KeyID: relKey.ID, BlockID: itemID, Type: av.KeyTypeRelation, Relation: value.Relation}}})items[itemID] = keyValuescase av.KeyTypeCreated: // 渲染创建时间- createdStr := itemID[:len("20060102150405")]+ ial := map[string]string{}+ block := item.GetBlockValue()+ if nil != block {+ ial = ials[block.Block.ID]+ }+ if nil == ial {+ ial = map[string]string{}+ }+ id := itemID+ if "" != ial["id"] {+ id = ial["id"]+ }+ createdStr := id[:len("20060102150405")]created, parseErr := time.ParseInLocation("20060102150405", createdStr, time.Local)if nil == parseErr {value.Created = av.NewFormattedValueCreated(created.UnixMilli(), 0, av.CreatedFormatNone)@@ -453,6 +465,9 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collectionif nil != block {ial = ials[block.Block.ID]}+ if nil == ial {+ ial = map[string]string{}+ }updatedStr := ial["updated"]if "" == updatedStr && nil != block {value.Updated = av.NewFormattedValueUpdated(block.Block.Updated, 0, av.UpdatedFormatNone)