Skip to content

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

:art: Improve av

Daniel6c3138b8bdd8
diff --git a/kernel/sql/av.go b/kernel/sql/av.go
index bdef3d565a..2379bafcf4 100644
--- a/kernel/sql/av.go
+++ b/kernel/sql/av.go
@@ -336,7 +336,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection
}
}
}
- case av.KeyTypeRollup: // 渲染汇总字段
+ case av.KeyTypeRollup: // 渲染汇总
rollupKey, _ := attrView.GetKey(value.KeyID)
if nil == rollupKey || nil == rollupKey.Rollup {
break
@@ -403,7 +403,7 @@ func fillAttributeViewAutoGeneratedValues(attrView *av.AttributeView, collection
keyValues := items[itemID]
keyValues = append(keyValues, &av.KeyValues{Key: rollupKey, Values: []*av.Value{{ID: value.ID, KeyID: rollupKey.ID, BlockID: itemID, Type: av.KeyTypeRollup, Rollup: value.Rollup}}})
items[itemID] = keyValues
- case av.KeyTypeRelation: // 渲染关联字段
+ case av.KeyTypeRelation: // 渲染关联
value.Relation.Contents = nil
relKey, _ := attrView.GetKey(value.KeyID)
if nil != relKey && nil != relKey.Relation {