1
0
forked from test/crm

fix: return correct total_count

This commit is contained in:
Shariq Ansari 2024-02-03 21:16:59 +05:30
parent 678f3e0236
commit 79c12bdb9c

View File

@ -236,7 +236,7 @@ def get_list_data(
"page_length_count": page_length_count,
"is_default": is_default,
"views": get_views(doctype),
"total_count": frappe.client.get_count(doctype, filters=filters),
"total_count": len(frappe.get_all(doctype, filters=filters)),
"row_count": len(data),
}