diff options
Diffstat (limited to 'tagit/parsing')
-rw-r--r-- | tagit/parsing/filter/to_string.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |