Lowercase

This commit is contained in:
kimth
2012-08-20 18:51:34 -04:00
parent 7e7247d8bf
commit eaef8c70a7

View File

@@ -157,14 +157,14 @@ def progress_summary(student, course, grader, student_module_cache):
for c in course.get_display_items():
# Skip if the chapter is hidden
hidden = c.metadata.get('hide_from_toc','false')
if hidden == 'true':
if hidden.lower() == 'true':
continue
sections = []
for s in c.get_display_items():
# Skip if the section is hidden
hidden = s.metadata.get('hide_from_toc','false')
if hidden == 'true':
if hidden.lower() == 'true':
continue
# Same for sections