From daf35bed8fd156acc6d6cd9dbb9488b1feb7c894 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 15 May 2014 10:30:36 -0400 Subject: [PATCH] Fix instructor csv download --- lms/djangoapps/instructor/views/legacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor/views/legacy.py b/lms/djangoapps/instructor/views/legacy.py index dad6378d4b..53c28793a5 100644 --- a/lms/djangoapps/instructor/views/legacy.py +++ b/lms/djangoapps/instructor/views/legacy.py @@ -694,7 +694,7 @@ def instructor_dashboard(request, course_id): datatable = {'header': ['User ID', 'Anonymized user ID', 'Course Specific Anonymized user ID']} datatable['data'] = [[s.id, unique_id_for_user(s), anonymous_id_for_user(s, course_id)] for s in students] - return return_csv(course_id.to_deprecated_string().replace('/', '-') + '-anon-ids.csv', datatable) + return return_csv(course_key.to_deprecated_string().replace('/', '-') + '-anon-ids.csv', datatable) #---------------------------------------- # Group management