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}) }} {{
|
{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{
|
||||||
_("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort":
|
_("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort":
|
||||||
cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS Enrollment",
|
cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS Enrollment",
|
||||||
{"cohort": cohort.name}) }} {{ _("Students") }} | {{ frappe.db.count("Cohort
|
{"cohort": cohort.name}) }} {{ _("Students") }}
|
||||||
Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}
|
| {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if is_mentor %} {% set sg = mentor.get_subgroup() %}
|
{% if is_mentor %} {% set sg = mentor.get_subgroup() %}
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ course.title }} {% endblock %} {% block page_content %} {% if cohorts %}
|
|||||||
<p class="mb-0">
|
<p class="mb-0">
|
||||||
{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{
|
{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{
|
||||||
_("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort":
|
_("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort":
|
||||||
cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS
|
cohort.name}) }} {{ _("Mentors") }}
|
||||||
Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }} | {{
|
| {{ frappe.db.count("LMS Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }}
|
||||||
frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }}
|
| {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }}
|
||||||
{{ _("Join Requests") }}
|
{{ _("Join Requests") }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user