mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Attribute View date column filter https://github.com/siyuan-note/siyuan/issues/8756
This commit is contained in:
parent
4ac9278a14
commit
fd9c1b221e
1 changed files with 2 additions and 2 deletions
|
|
@ -192,10 +192,10 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
|
|||
case FilterOperatorIsLessOrEqual:
|
||||
return value.Date.Content <= other.Date.Content
|
||||
case FilterOperatorIsBetween:
|
||||
start := value.Date.Content <= other.Date.Content
|
||||
start := value.Date.Content >= other.Date.Content
|
||||
end := true
|
||||
if value.Date.HasEndDate {
|
||||
end = value.Date.Content2 >= other.Date.Content2
|
||||
end = value.Date.Content2 <= other.Date.Content2
|
||||
}
|
||||
return start && end
|
||||
case FilterOperatorIsEmpty:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue