fix: [search items tag] fix daterange

This commit is contained in:
Terrtia 2020-02-07 10:12:38 +01:00
parent c7979d81e3
commit 62ce4646e5
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -451,7 +451,7 @@ def delete_obj_tags(object_id, object_type, tags=[]):
return res
def sanitise_tags_date_range(l_tags, date_from=None, date_to=None):
if date_from or date_to is None:
if date_from is None or date_to is None:
date_from = get_tags_min_last_seen(l_tags, r_int=False)
date_to = date_from
return Date.sanitise_date_range(date_from, date_to)