fix: use get_list for total_count also instead of get_all

This commit is contained in:
Shariq Ansari 2024-02-26 14:32:32 +05:30
parent 71886cfc7f
commit 08d215bcc0

View File

@ -238,7 +238,7 @@ def get_list_data(
"page_length_count": page_length_count, "page_length_count": page_length_count,
"is_default": is_default, "is_default": is_default,
"views": get_views(doctype), "views": get_views(doctype),
"total_count": len(frappe.get_all(doctype, filters=filters)), "total_count": len(frappe.get_list(doctype, filters=filters)),
"row_count": len(data), "row_count": len(data),
"form_script": get_form_script(doctype) "form_script": get_form_script(doctype)
} }