mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [search items tag] fix daterange
This commit is contained in:
parent
c7979d81e3
commit
62ce4646e5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue