Added chapter blocks to be excluded from report

This commit is contained in:
Kshitij Sobti
2018-04-05 00:57:48 +05:30
parent 1aa55c6cfa
commit ccabab0771

View File

@@ -604,9 +604,9 @@ class ProblemResponses(object):
student_data = []
max_count = settings.FEATURES.get('MAX_PROBLEM_RESPONSES_COUNT')
for title, path, block_key in cls._build_problem_list(course_blocks, problem_key):
# Sequential blocks are filtered out since they include position state
# which isn't useful in this report.
if block_key.block_type == 'sequential':
# Chapter and sequential blocks are filtered out since they include state
# which isn't useful for this report.
if block_key.block_type in ('sequential', 'chapter'):
continue
responses = list_problem_responses(course_id, block_key, max_count)
student_data += responses