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

Daniela2d4f82b506e
diff --git a/kernel/av/table.go b/kernel/av/table.go
index 1cf9c25d75..a5b9abf5c7 100644
--- a/kernel/av/table.go
+++ b/kernel/av/table.go
@@ -326,7 +326,7 @@ func (value *Value) Filter(filter *ViewFilter, attrView *AttributeView, rowID st
}
if nil != value.Relation && KeyTypeRelation == value.Type && 0 < len(value.Relation.Contents) && nil != filter && nil != filter.Value && KeyTypeRelation == filter.Value.Type &&
- nil != filter.Value.Relation && 0 < len(filter.Value.Relation.BlockIDs) && 0 < len(filter.Value.Relation.BlockIDs) {
+ nil != filter.Value.Relation && 0 < len(filter.Value.Relation.BlockIDs) {
// 单独处理关联类型的比较
relationValue := value.Relation.Contents[0]
filterValue := &Value{Type: KeyTypeBlock, Block: &ValueBlock{Content: filter.Value.Relation.BlockIDs[0]}}