mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
Revert "[optimize] remove count(*) from queries"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user