Commit c58b3a14 by Nimisha Asthagiri Committed by GitHub

Merge pull request #14880 from edx/efischer/progress_order

chapter_grades should be ordered
parents be5c4fad 8e7dc093
......@@ -59,10 +59,10 @@ class CourseGradeBase(object):
subsection grades, display name, and url name.
"""
course_structure = self.course_data.structure
return {
chapter_key: self._get_chapter_grade_info(course_structure[chapter_key], course_structure)
for chapter_key in course_structure.get_children(self.course_data.location)
}
grades = OrderedDict()
for chapter_key in course_structure.get_children(self.course_data.location):
grades[chapter_key] = self._get_chapter_grade_info(course_structure[chapter_key], course_structure)
return grades
@lazy
def subsection_grades(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment