Update Subsection Grade Report to differentiate Not Attempted and 0

TNL-5990
This commit is contained in:
Nimisha Asthagiri
2016-11-21 21:46:29 -05:00
parent 3bb5617abd
commit aca69f78f2
15 changed files with 345 additions and 178 deletions

View File

@@ -100,7 +100,7 @@ $(function () {
extraColorIndex = len(categories) #Keeping track of the next color to use for categories not in categories[]
if show_grade_breakdown:
for section in grade_summary['grade_breakdown']:
for section in grade_summary['grade_breakdown'].itervalues():
if section['percent'] > 0:
if section['category'] in categories:
color = categories[ section['category'] ]['color']