Skip to content

Commit

Permalink
[frontend/course_admin] fix bad student count (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
Drumor committed Jul 12, 2022
1 parent d8c2ecc commit d5726df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ <h2>{{ _("User management") }}</h2>
<div role="tabpanel" class="card-body tab-pane active" id="tab_students">
{% set len_all_users = user_data|length %}
{% set len_staff = course.get_staff()|length %}
<p>{{ _("Number of students") }} : {{ len_all_users - len_staff }}</p>
{% with user_data=user_data[len_staff:len_all_users], is_staff=False %}
<p>{{ _("Number of students") }} : {{ user_data | length }}</p>
{% include "course_admin/student_list_table.html" %}
{% endwith %}
{% if user_manager.has_admin_rights_on_course(course) %}
Expand Down

0 comments on commit d5726df

Please sign in to comment.