Skip to content

Commit

Permalink
fix: return correct total_count
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Feb 3, 2024
1 parent 678f3e0 commit 79c12bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crm/api/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down

0 comments on commit 79c12bd

Please sign in to comment.