From 906076a24fd3baca68e0381aca1953a05f5b45b7 Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Fri, 17 Feb 2023 08:29:26 +0100 Subject: Fixes: * Preview loading in browser * Search via bsfs.Graph.sorted to preserve order * Fixes in parsing.filter.to_string --- tagit/parsing/filter/to_string.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tagit/parsing') diff --git a/tagit/parsing/filter/to_string.py b/tagit/parsing/filter/to_string.py index 0b1a3e1..a2815de 100644 --- a/tagit/parsing/filter/to_string.py +++ b/tagit/parsing/filter/to_string.py @@ -206,10 +206,10 @@ class ToString(): guids = {guid for sub in query for guid in get_guids(sub.value) } elif self.matches(query, ast.filter.Not(matcher.Partial(ast.filter.Is))): negated = True - guids = get_guids(query.value) + guids = get_guids(query.expr.value) elif self.matches(query, ast.filter.Not(ast.filter.Or(matcher.Rest(matcher.Partial(ast.filter.Is))))): negated = True - guids = {guid for sub in query for guid in get_guids(sub.value) } + guids = {guid for sub in query.expr for guid in get_guids(sub.value) } if len(guids) == 0: # no matches -- cgit v1.2.3