We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ae900 commit 84c28a7Copy full SHA for 84c28a7
project.py
@@ -794,10 +794,11 @@ def add_minimal_arguments(parser):
794
def evaluate_predicate(element, predicate):
795
"""Evaluate predicate in context of index element fields."""
796
# pylint: disable=I0011,W0122,W0123
797
+ ns = {}
798
for key in element:
799
if isinstance(element[key], str):
- exec(key + ' = """' + element[key] + '"""')
800
- return eval(predicate)
+ exec(key + ' = """' + element[key] + '"""', ns)
801
+ return eval(predicate, ns)
802
803
804
def included_element(include_predicates, exclude_predicates, element):
0 commit comments