Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Check if the authorities are online #335

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iam/api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ def update_tally_status(auth_event):
ballot_box_request.text
)
updated_election = parse_json_request(ballot_box_request)
tally_state = updated_election['payload']['tally_state']
election_state = updated_election['payload']['state']
tally_state = updated_election['payload']['tally_state'] if 'tally_state' in updated_election['payload'] else None
election_state = updated_election['payload']['state'] if 'state' in updated_election['payload'] else None

if ('tally_error' == tally_state or \
(election_state in ['stopped', 'started']) and not settings.ENABLE_MULTIPLE_TALLIES):
Expand Down
Loading