This commit is contained in:
Daniel 2023-07-27 13:16:26 +08:00
parent aafb91a410
commit d417fc39d3
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -193,11 +193,9 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
return value.Date.Content <= other.Date.Content return value.Date.Content <= other.Date.Content
case FilterOperatorIsBetween: case FilterOperatorIsBetween:
start := value.Date.Content >= other.Date.Content start := value.Date.Content >= other.Date.Content
end := true end := value.Date.Content <= other.Date.Content2
if value.Date.HasEndDate { if value.Date.HasEndDate {
end = value.Date.Content2 <= other.Date.Content2 end = value.Date.Content2 <= other.Date.Content2
} else {
end = value.Date.Content <= other.Date.Content2
} }
return start && end return start && end
case FilterOperatorIsEmpty: case FilterOperatorIsEmpty: