This commit is contained in:
Daniel 2023-07-27 13:08:08 +08:00
parent 4ac9278a14
commit fd9c1b221e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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: