An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Update av
Daniel656a13ec8909
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex b24c889dca..40fe32d962 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -372,13 +372,13 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Treattrs := parse.IAL2Map(node.KramdownIAL)attrs[NodeAttrNamePrefixAvKey+operation.AvID+"-"+blockValues.Key.ID] = "" // 将列作为属性添加到块中- if "" == attrs[NodeAttrNameAVs] {- attrs[NodeAttrNameAVs] = operation.AvID+ if "" == attrs[NodeAttrNameAvs] {+ attrs[NodeAttrNameAvs] = operation.AvID} else {- avIDs := strings.Split(attrs[NodeAttrNameAVs], ",")+ avIDs := strings.Split(attrs[NodeAttrNameAvs], ",")avIDs = append(avIDs, operation.AvID)avIDs = gulu.Str.RemoveDuplicatedElem(avIDs)- attrs[NodeAttrNameAVs] = strings.Join(avIDs, ",")+ attrs[NodeAttrNameAvs] = strings.Join(avIDs, ",")}if err = setNodeAttrsWithTx(tx, node, tree, attrs); nil != err {@@ -946,6 +946,6 @@ func updateAttributeViewColumnOption(operation *Operation) (err error) {}const (- NodeAttrNameAVs = "custom-avs"- NodeAttrNamePrefixAvKey = "custom-av-key-"+ NodeAttrNameAvs = "custom-avs" // 用于标记块所属的属性视图,逗号分隔 av id+ NodeAttrNamePrefixAvKey = "custom-av-key-" // 用于标记列)diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 9512e20fa2..50d1069758 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -728,7 +728,7 @@ func (tx *Transaction) doDelete(operation *Operation) (ret *TxErr) {}func syncDelete2AttributeView(node *ast.Node) {- avs := node.IALAttr(NodeAttrNameAVs)+ avs := node.IALAttr(NodeAttrNameAvs)if "" == avs {return}@@ -1240,7 +1240,7 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m// 2. 更新属性视图主键内容for _, updatedDefNode := range updatedDefNodes {- avs := updatedDefNode.IALAttr(NodeAttrNameAVs)+ avs := updatedDefNode.IALAttr(NodeAttrNameAvs)if "" == avs {continue}