Revert "[optimize] remove count(*) from queries"

This commit is contained in:
Rushabh Mehta
2016-11-21 21:04:47 +05:30
committed by GitHub
parent d3344ebcd1
commit 9872d8cdb5
6 changed files with 11 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ def boot_session(bootinfo):
"Notification Control")
# if no company, show a dialog box to create a new company
bootinfo.customer_count = frappe.db.sql("""select count(name) from tabCustomer""")[0][0]
bootinfo.customer_count = frappe.db.sql("""select count(*) from tabCustomer""")[0][0]
if not bootinfo.customer_count:
bootinfo.setup_complete = frappe.db.sql("""select name from