Skip to content

Commit

Permalink
Add votes allowed on candidates races (even if it's the default).
Browse files Browse the repository at this point in the history
Fixes BallotLab TrustTheVote-Project#82.
  • Loading branch information
ion-oset committed Aug 23, 2022
1 parent f5090b8 commit 55b5b38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/electos/ballotmaker/scripts/ballot-lab-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def extract_candidate_contest(contest: CandidateContest, index):
"title": contest.name,
"type": "candidate",
"vote_type": contest.vote_variation.value,
# Include even when default is 1: don't require caller to track that.
"votes_allowed": contest.votes_allowed,
"district": district,
"candidates": [
{ "name": candidate_name(_), "party": candidate_party(_, index) }
Expand Down

0 comments on commit 55b5b38

Please sign in to comment.