fix: mport module from line N shadowed by loop variable

Flake8 F402 reported by sider
This commit is contained in:
gavin 2022-05-19 17:45:22 +05:30
parent db11af2a5c
commit a20800ee2b

View file

@ -181,11 +181,11 @@ class Query:
warn("'filters_config' hook is not completely implemented yet in frappe.db.query engine")
for operator, function in additional_filters_config.items():
for _operator, function in additional_filters_config.items():
if callable(function):
all_operators.update({operator.casefold(): function})
all_operators.update({_operator.casefold(): function})
elif isinstance(function, dict):
all_operators[operator.casefold()] = frappe.get_attr(function.get("get_field"))()["operator"]
all_operators[_operator.casefold()] = frappe.get_attr(function.get("get_field"))()["operator"]
return all_operators