Commit d72c36be authored by Vincent Pelletier's avatar Vincent Pelletier

SearchTextParser: Fix a NameError in the parser debugger interactive prompt

parent 330a0516
......@@ -279,7 +279,7 @@ if __name__ == '__main__':
query_list = [walk(x, key) for x in node.getNodeList()]
operator = node.getLogicalOperator()
if operator == 'not' or len(query_list) > 1:
result = ComplexQuery(query_list, logical_operator=logical_operator)
result = ComplexQuery(query_list, logical_operator=operator)
elif len(query_list) == 1:
result = query_list[0]
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment