fix(query): Typo in OPERATOR_MAP

This commit is contained in:
Gavin D'souza 2022-03-31 16:24:03 +05:30
parent b99cd7ab3b
commit 69df3edba3
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ OPERATOR_MAP = {
"<": operator.lt,
">": operator.gt,
"<=": operator.le,
"=>": operator.le,
"=<": operator.le,
">=": operator.ge,
"=>": operator.ge,
"in": func_in,

View file

@ -69,7 +69,7 @@ def get_monthly_goal_graph_data(
:return: dict of graph data
"""
if isinstance(filter_str, str):
frappe.throw("String filters have been deprecated. Pass Dict filters instead.", exc=DeprecationWarning)
frappe.throw("String filters have been deprecated. Pass Dict filters instead.", exc=DeprecationWarning) # nosemgrep
doc = frappe.get_doc(doctype, docname)
doc.check_permission()