An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve database date field filtering https://github.com/siyuan-note/siyuan/issues/15744
Daniela5d268665d8f
diff --git a/kernel/av/filter.go b/kernel/av/filter.goindex 85fe1931f0..ac462deb51 100644--- a/kernel/av/filter.go+++ b/kernel/av/filter.go@@ -538,17 +538,17 @@ func filterRelativeTime(valueMills int64, valueIsNotEmpty bool, operator FilterOswitch operator {case FilterOperatorIsEqual:- return (valueTime.After(otherValueStart) || valueTime.Equal(otherValueStart)) && valueTime.Before(otherValueEnd)+ return (valueTime.After(otherValueStart) || valueTime.Equal(otherValueStart)) && (valueTime.Before(otherValueEnd) || valueTime.Equal(otherValueEnd))case FilterOperatorIsNotEqual:return valueTime.Before(otherValueStart) || valueTime.After(otherValueEnd)case FilterOperatorIsGreater:- return valueTime.After(otherValueStart)+ return valueTime.After(otherValueEnd)case FilterOperatorIsGreaterOrEqual:return valueTime.After(otherValueStart) || valueTime.Equal(otherValueStart)case FilterOperatorIsLess:return valueTime.Before(otherValueStart)case FilterOperatorIsLessOrEqual:- return valueTime.Before(otherValueStart) || valueTime.Equal(otherValueStart)+ return valueTime.Before(otherValueEnd) || valueTime.Equal(otherValueEnd)case FilterOperatorIsBetween:if RelativeDateDirectionBefore == direction {if RelativeDateDirectionBefore == direction2 {