removed extra quote from query

This commit is contained in:
Makarand Bauskar 2017-06-15 16:02:44 +05:30 committed by GitHub
parent 5aee7d1b70
commit a4af7cb7d3

View File

@ -5,7 +5,7 @@ from __future__ import unicode_literals
import frappe
def execute():
doctypes = frappe.db.sql_list(""""select parent from tabDocField where fieldname = 'in_words'""")
doctypes = frappe.db.sql_list("""select parent from tabDocField where fieldname = 'in_words'""")
for dt in doctypes:
for fieldname in ("in_words", "base_in_words"):
@ -13,4 +13,4 @@ def execute():
.format(dt, fieldname, fieldname))
frappe.db.sql("""alter table `tabJournal Entry`
change column `total_amount_in_words` `total_amount_in_words` varchar(255)""")
change column `total_amount_in_words` `total_amount_in_words` varchar(255)""")