fix: cohorts
This commit is contained in:
@@ -6,8 +6,8 @@ course.title }} {% endblock %} {% block page_content %}
|
||||
{{ 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") }}
|
||||
</p>
|
||||
|
||||
{% if is_mentor %} {% set sg = mentor.get_subgroup() %}
|
||||
|
||||
@@ -24,9 +24,9 @@ course.title }} {% endblock %} {% block page_content %} {% if cohorts %}
|
||||
<p class="mb-0">
|
||||
{{ 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") }}
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user