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.
This commit is contained in:
Carlos Andrés Rocha
2014-07-03 12:25:16 -04:00
parent 5be08cc231
commit 1939678958

View File

@@ -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']