From a4af7cb7d3900e9f7724f916afb65800eb2e7b11 Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Thu, 15 Jun 2017 16:02:44 +0530 Subject: [PATCH] removed extra quote from query --- erpnext/patches/v8_0/change_in_words_varchar_length.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v8_0/change_in_words_varchar_length.py b/erpnext/patches/v8_0/change_in_words_varchar_length.py index 0e5891ea6f..68ff95b5ed 100644 --- a/erpnext/patches/v8_0/change_in_words_varchar_length.py +++ b/erpnext/patches/v8_0/change_in_words_varchar_length.py @@ -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)""") \ No newline at end of file + change column `total_amount_in_words` `total_amount_in_words` varchar(255)""")