#551 Fix filter Error for ints

This commit is contained in:
meisnate12 2021-12-30 11:37:39 -05:00
parent 1c56b0665e
commit d636da26eb

View file

@ -1848,7 +1848,10 @@ class CollectionBuilder:
return False
elif modifier in [".gt", ".gte", ".lt", ".lte"]:
divider = 60000 if filter_attr == "duration" else 1
if util.is_number_filter(getattr(item, filter_actual) / divider, modifier, filter_data):
test_number = getattr(item, filter_actual)
if not test_number:
return False
if util.is_number_filter(test_number / divider, modifier, filter_data):
return False
else:
attrs = []