Skip to content

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

:bug: Database filtering for specific dates not working Fix https://github.com/siyuan-note/siyuan/issues/10518

Daniel4df344559960
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index f29ff860e1..1bd8906177 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -2795,6 +2795,9 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string,
}
}
val.UpdatedAt = now
+ if val.CreatedAt == val.UpdatedAt {
+ val.UpdatedAt += 1000 // 防止更新时间和创建时间一样
+ }
key, _ := attrView.GetKey(val.KeyID)
if nil != key && av.KeyTypeRelation == key.Type && nil != key.Relation {