add comment - instructor dashboard grades fix

This commit is contained in:
ichuang
2013-10-12 09:54:02 -04:00
parent 2c702fbbd8
commit 991899be40

View File

@@ -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: