From 26f76acdd24923f9e832c2a3e396beae268b7815 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 8 Nov 2022 11:29:46 +0530 Subject: [PATCH] fix: format stats --- lms/templates/statistics.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lms/templates/statistics.html b/lms/templates/statistics.html index 6324cf39..57b84e68 100644 --- a/lms/templates/statistics.html +++ b/lms/templates/statistics.html @@ -6,29 +6,42 @@ {{ _("Published Courses") }}
- {{ frappe.db.count("LMS Course", { "published": 1, "upcoming": 0 }) }} + {{ frappe.utils.fmt_money( + frappe.db.count("LMS Course", { + "published": 1, + "upcoming": 0 + }) + , 0) }}
{% endif %} + {% if total_signups %}
{{ _("Total Signups") }}
- {{ frappe.db.count("User", { "enabled": 1 }) }} + {{ frappe.utils.fmt_money( + frappe.db.count("User", { + "enabled": 1 + }) + , 0) }}
{% endif %} + {% if enrollment_count %}
{{ _("Enrollment Count") }}
- {{ frappe.db.count("LMS Batch Membership") }} + {{ frappe.utils.fmt_money( + frappe.db.count("LMS Batch Membership") + , 0) }}
{% endif %}