From 85c850e5bf2b6456f1acc5663601b28171631e3a Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 14 Dec 2023 15:08:42 +0530 Subject: [PATCH] fix: cohorts --- lms/www/cohorts/cohort.html | 4 ++-- lms/www/cohorts/index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lms/www/cohorts/cohort.html b/lms/www/cohorts/cohort.html index 7e1672a12..f604ce2d3 100644 --- a/lms/www/cohorts/cohort.html +++ b/lms/www/cohorts/cohort.html @@ -6,8 +6,8 @@ {{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{ _("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort": cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS Enrollment", - {"cohort": cohort.name}) }} {{ _("Students") }} | {{ frappe.db.count("Cohort - Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }} + {"cohort": cohort.name}) }} {{ _("Students") }} + | {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}

{% if is_mentor %} {% set sg = mentor.get_subgroup() %} diff --git a/lms/www/cohorts/index.html b/lms/www/cohorts/index.html index 55c3233fe..c9d4f2872 100644 --- a/lms/www/cohorts/index.html +++ b/lms/www/cohorts/index.html @@ -24,9 +24,9 @@

{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{ _("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort": - cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS - Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }} | {{ - frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }} + cohort.name}) }} {{ _("Mentors") }} + | {{ frappe.db.count("LMS Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }} + | {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}