From 62ce4646e5b605893eec81df22c902e7d1269073 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 7 Feb 2020 10:12:38 +0100 Subject: [PATCH] fix: [search items tag] fix daterange --- bin/packages/Tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/packages/Tag.py b/bin/packages/Tag.py index 03b9c990..bc5a290d 100755 --- a/bin/packages/Tag.py +++ b/bin/packages/Tag.py @@ -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)