Skip to content

Commit

Permalink
✨ Check if the authorities are online (#335)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/epi#36
  • Loading branch information
Findeton committed Apr 12, 2024
1 parent 20ba20b commit 270902d
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 270902d

Please sign in to comment.