[84] #736 fix for 0 filters

This commit is contained in:
meisnate12 2022-02-27 11:17:55 -05:00
parent 47289b922d
commit a18be7a305
2 changed files with 2 additions and 4 deletions

View file

@ -1 +1 @@
1.15.1-develop83 1.15.1-develop84

View file

@ -2024,9 +2024,7 @@ class CollectionBuilder:
if modifier in [".count_gt", ".count_gte", ".count_lt", ".count_lte"]: if modifier in [".count_gt", ".count_gte", ".count_lt", ".count_lte"]:
test_number = len(test_number) if test_number else 0 test_number = len(test_number) if test_number else 0
modifier = f".{modifier[7:]}" modifier = f".{modifier[7:]}"
elif not test_number: if test_number is None or util.is_number_filter(test_number / divider, modifier, filter_data):
return False
if util.is_number_filter(test_number / divider, modifier, filter_data):
return False return False
else: else:
attrs = [] attrs = []