mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🐛 Database relative date filtering is incorrect https://github.com/siyuan-note/siyuan/issues/15710
This commit is contained in:
parent
c2ef8de766
commit
0f087bf1e4
1 changed files with 2 additions and 4 deletions
|
@ -285,10 +285,8 @@ 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 && nil != other && nil != other.Date && nil == relativeDate && !other.Date.IsNotEmpty {
|
||||
return true
|
||||
}
|
||||
|
||||
if nil != value.Date {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue