From 1939678958a9ab558dc18753dca16e061e531012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s=20Rocha?= Date: Thu, 3 Jul 2014 12:25:16 -0400 Subject: [PATCH] Use deprecated course_key when calling the analytics API. Previously it was serializing the course_key directly, which is not interpreted correctly by the API. --- lms/djangoapps/instructor/views/instructor_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index 0e8cc2e7b9..abebd0fb11 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -285,7 +285,7 @@ def _update_active_students(course_key, section_data): try: client = RestClient(base_url=base_url, auth_token=auth_token) - course = Course(client, course_key) + course = Course(client, course_key.to_deprecated_string()) section_data['active_student_count'] = course.recent_active_user_count['count']