From ce7a4324243e1f42e215546e18ec1a16d5715efd Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 27 Jan 2022 09:55:18 -0500 Subject: [PATCH] fix smart validation --- modules/builder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index d9e59deb..9331ad61 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1544,15 +1544,14 @@ class CollectionBuilder: display_add = "" for dict_data in dicts: if not isinstance(dict_data, dict): - raise Failed( - f"{self.Type} Error: {attr} must be either a dictionary or list of dictionaries") + raise Failed(f"{self.Type} Error: {attr} must be either a dictionary or list of dictionaries") inside_filter, inside_display = _filter(dict_data, is_all=attr == "all", level=level) if len(inside_filter) > 0: display_add += inside_display results += f"{conjunction if len(results) > 0 else ''}push=1&{inside_filter}pop=1&" else: validation = self.validate_attribute(attr, modifier, final_attr, _data, validate, pairs=True) - if validation is None: + if validation is not False and not validation: continue elif attr in plex.date_attributes and modifier in ["", ".not"]: last_text = "is not in the last" if modifier == ".not" else "is in the last"