Skip to content

Commit

Permalink
do not output exception answers or do not mark council answers
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 25, 2023
1 parent 819cfbc commit 342a353
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions crowdsourcer/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,24 @@ def get_all_question_data(scoring, response_type="Audit"):
]
]
for response in responses:
q_data = get_response_data(response, include_name=False, process_links=True)

section = response.question.section.title
q_number = response.question.number_and_part
council = response.authority.name

if response.authority.do_not_mark:
continue

if q_is_exception(
q_number,
section,
scoring["council_groups"][council],
scoring["council_countries"][council],
scoring["councils"][council],
):
continue

q_data = get_response_data(response, include_name=False, process_links=True)

max_score = scoring["q_maxes"][section][q_number]

data = [
Expand Down

0 comments on commit 342a353

Please sign in to comment.