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