From a18be7a30543036c1c7f1115c8b645676c8ecca4 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 27 Feb 2022 11:17:55 -0500 Subject: [PATCH] [84] #736 fix for 0 filters --- VERSION | 2 +- modules/builder.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index d4cf05dc..ff216d4d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop83 +1.15.1-develop84 diff --git a/modules/builder.py b/modules/builder.py index e56962a3..9127a542 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -2024,9 +2024,7 @@ class CollectionBuilder: if modifier in [".count_gt", ".count_gte", ".count_lt", ".count_lte"]: test_number = len(test_number) if test_number else 0 modifier = f".{modifier[7:]}" - elif not test_number: - return False - if util.is_number_filter(test_number / divider, modifier, filter_data): + if test_number is None or util.is_number_filter(test_number / divider, modifier, filter_data): return False else: attrs = []