fix: format stats
This commit is contained in:
@@ -6,29 +6,42 @@
|
||||
{{ _("Published Courses") }}
|
||||
</div>
|
||||
<div class="stats-value">
|
||||
{{ frappe.db.count("LMS Course", { "published": 1, "upcoming": 0 }) }}
|
||||
{{ frappe.utils.fmt_money(
|
||||
frappe.db.count("LMS Course", {
|
||||
"published": 1,
|
||||
"upcoming": 0
|
||||
})
|
||||
, 0) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if total_signups %}
|
||||
<div class="common-card-style p-4 flex-column">
|
||||
<div class="stats-label">
|
||||
{{ _("Total Signups") }}
|
||||
</div>
|
||||
<div class="stats-value">
|
||||
{{ frappe.db.count("User", { "enabled": 1 }) }}
|
||||
{{ frappe.utils.fmt_money(
|
||||
frappe.db.count("User", {
|
||||
"enabled": 1
|
||||
})
|
||||
, 0) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if enrollment_count %}
|
||||
<div class="common-card-style p-4 flex-column">
|
||||
<div class="stats-label">
|
||||
{{ _("Enrollment Count") }}
|
||||
</div>
|
||||
<div class="stats-value">
|
||||
{{ frappe.db.count("LMS Batch Membership") }}
|
||||
{{ frappe.utils.fmt_money(
|
||||
frappe.db.count("LMS Batch Membership")
|
||||
, 0) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user