From ccabab07712f2efd65dbef6a135e4d77f00188ec Mon Sep 17 00:00:00 2001 From: Kshitij Sobti Date: Thu, 5 Apr 2018 00:57:48 +0530 Subject: [PATCH] Added chapter blocks to be excluded from report --- lms/djangoapps/instructor_task/tasks_helper/grades.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/instructor_task/tasks_helper/grades.py b/lms/djangoapps/instructor_task/tasks_helper/grades.py index a8f093797e..2d524ae9ac 100644 --- a/lms/djangoapps/instructor_task/tasks_helper/grades.py +++ b/lms/djangoapps/instructor_task/tasks_helper/grades.py @@ -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