fix: stats template

This commit is contained in:
Jannat Patel
2022-10-21 11:00:37 +05:30
parent cbf852828c
commit 211ca3111f
3 changed files with 36 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
{{ _("Published Courses") }}
</div>
<div class="stats-value">
{{ format_number(frappe.db.count("LMS Course", { "published": 1, "upcoming": 0 })) }}
{{ frappe.db.count("LMS Course", { "published": 1, "upcoming": 0 }) }}
</div>
</div>
{% endif %}
@@ -17,7 +17,7 @@
{{ _("Total Signups") }}
</div>
<div class="stats-value">
{{ format_number(frappe.db.count("User", { "enabled": 1 })) }}
{{ frappe.db.count("User", { "enabled": 1 }) }}
</div>
</div>
{% endif %}
@@ -28,7 +28,7 @@
{{ _("Enrollment Count") }}
</div>
<div class="stats-value">
{{ format_number(frappe.db.count("LMS Batch Membership")) }}
{{ frappe.db.count("LMS Batch Membership") }}
</div>
</div>
{% endif %}