Skip to content

Commit 17e7b72

Browse files
committed
let response_counts on progress page work out the question list itself
Avoids miscounting of complete councils when people have a mix of council types assigned.
1 parent 3d349f6 commit 17e7b72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crowdsourcer/views/marking.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,13 @@ def get_context_data(self, **kwargs):
207207
).values_list("authority_id", flat=True)
208208
args.append(authorities)
209209

210+
# we pass the question list but we want to ignore it because there could be different types of council
211+
# included in assignments which throws the count off
210212
response_counts = PublicAuthority.response_counts(
211-
*args, question_types=types, response_type=assignment.response_type
213+
*args,
214+
question_types=types,
215+
response_type=assignment.response_type,
216+
ignore_question_list=True,
212217
).distinct()
213218

214219
for count in response_counts:

0 commit comments

Comments
 (0)