From 991899be40d368e5ebdc7c4373bc569a035cfde7 Mon Sep 17 00:00:00 2001 From: ichuang Date: Sat, 12 Oct 2013 09:54:02 -0400 Subject: [PATCH] add comment - instructor dashboard grades fix --- lms/djangoapps/instructor/views/legacy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/djangoapps/instructor/views/legacy.py b/lms/djangoapps/instructor/views/legacy.py index d038668a97..a744d157a1 100644 --- a/lms/djangoapps/instructor/views/legacy.py +++ b/lms/djangoapps/instructor/views/legacy.py @@ -469,9 +469,8 @@ def instructor_dashboard(request, course_id): else: aidx = allgrades['assignments'].index(aname) datatable = {'header': ['External email', aname]} - # datatable['data'] = [[x.email, x.grades[aidx]] for x in allgrades['students']] ddata = [] - for x in allgrades['students']: + for x in allgrades['students']: # do one by one in case there is a student who has only partial grades try: ddata.append([x.email, x.grades[aidx]]) except IndexError: