Commit 2e7e3540 by Carlos Andrés Rocha

Fix course enrollment count in instructor dashboard

Fix AN-115
parent 427f1184
......@@ -76,7 +76,7 @@ def _section_course_info(course_id):
section_data['section_display_name'] = _('Course Info')
section_data['course_id'] = course_id
section_data['course_display_name'] = course.display_name
section_data['enrollment_count'] = CourseEnrollment.objects.filter(course_id=course_id).count()
section_data['enrollment_count'] = CourseEnrollment.objects.filter(course_id=course_id, is_active=1).count()
section_data['has_started'] = course.has_started()
section_data['has_ended'] = course.has_ended()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment