mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fixed iteritems
This commit is contained in:
@@ -21,7 +21,7 @@ from six import iteritems
|
|||||||
|
|
||||||
def get_sle(**args):
|
def get_sle(**args):
|
||||||
condition, values = "", []
|
condition, values = "", []
|
||||||
for key, value in iteritems(args.iteritems):
|
for key, value in iteritems(args):
|
||||||
condition += " and " if condition else " where "
|
condition += " and " if condition else " where "
|
||||||
condition += "`{0}`=%s".format(key)
|
condition += "`{0}`=%s".format(key)
|
||||||
values.append(value)
|
values.append(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user