Skip to content

Commit

Permalink
Prefer election from ballot if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Mar 27, 2024
1 parent f1119c4 commit f63483b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elections/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def list(self, request): # pylint: disable=arguments-differ
precinct = registration_status.precinct
ballots = registration_status.ballots
ballot = ballots[0] if ballots else None
election = ballot.election if ballot else election
data = {
"id": voter.fingerprint(election, registration_status),
"message": voter.describe(election, registration_status),
Expand Down

0 comments on commit f63483b

Please sign in to comment.