[minor] passed index for string format

This commit is contained in:
Makarand Bauskar 2017-06-29 09:07:59 +05:30 committed by GitHub
parent d652221071
commit 5c7545da0c

View File

@ -112,7 +112,7 @@ def fetch_students(doctype, txt, searchfield, start, page_len, filters):
tuple(students + ["%%%s%%" % txt, start, page_len]))
else:
return frappe.db.sql("""select name, title from tabStudent
where `{}` LIKE %s
where `{0}` LIKE %s
order by idx desc, name
limit %s, %s""".format(searchfield),
tuple(["%%%s%%" % txt, start, page_len]))