Skip to content
Snippets Groups Projects
Commit ccabab07 authored by Kshitij Sobti's avatar Kshitij Sobti
Browse files

Added chapter blocks to be excluded from report

parent 1aa55c6c
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment