Skip to content

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

:art: Improve database field default filling https://github.com/siyuan-note/siyuan/issues/11966 https://github.com/siyuan-note/siyuan/issues/15535

Danielc9530ea1c2b4
diff --git a/kernel/av/filter.go b/kernel/av/filter.go
index 4be905f0a0..9fb3639eb2 100644
--- a/kernel/av/filter.go
+++ b/kernel/av/filter.go
@@ -352,6 +352,12 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
}
}
case KeyTypeDate:
+ if nil != value.Date && nil != other && nil != other.Date {
+ if !other.Date.IsNotEmpty {
+ return true
+ }
+ }
+
if nil != value.Date {
switch operator {
case FilterOperatorIsEmpty: