fix(escaping): make_italian_localization_fields.py

This commit is contained in:
Rushabh Mehta 2019-03-18 18:04:34 +05:30
parent 2a4d4036f6
commit f060831cce

View File

@ -19,7 +19,7 @@ def execute():
# Set state codes
condition = ""
for state, code in state_codes.items():
condition += " when '{0}' then '{1}'".format(frappe.db.escape(state), frappe.db.escape(code))
condition += " when {0} then {1}".format(frappe.db.escape(state), frappe.db.escape(code))
if condition:
condition = "state_code = (case state {0} end),".format(condition)