Merge pull request #9536 from scmmishra/count-fix
fix: recheck zero count
This commit is contained in:
commit
ded3bb95d4
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ def get_data(module, build=True):
|
|||
exists_cache = get_table_with_counts()
|
||||
def doctype_contains_a_record(name):
|
||||
exists = exists_cache.get(name)
|
||||
if not type(exists) == int:
|
||||
if not exists:
|
||||
if not frappe.db.get_value('DocType', name, 'issingle'):
|
||||
exists = frappe.db.count(name)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue