🔖 Release v2.9.7

This commit is contained in:
Daniel 2023-07-25 12:26:45 +08:00
parent b5bf94e68a
commit c6dca8fa9c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 132 additions and 0 deletions

View file

@ -192,6 +192,9 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
case FilterOperatorIsLessOrEqual:
return value.Date.Content <= other.Date.Content
case FilterOperatorIsBetween:
if value.Date.HasEndDate {
// TODO: date filter (between)
}
return value.Date.Content >= other.Date.Content && value.Date.Content <= other.Date.Content2
case FilterOperatorIsEmpty:
return 0 == value.Date.Content