Skip to content

Commit

Permalink
Import more data from results
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Sep 6, 2023
1 parent f07844d commit d0a73e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wcivf/apps/elections/import_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,12 @@ def add_ballots(self, results):
list_position=candidate["party_list_position"],
elected=elected,
votes_cast=result.get("num_ballots", None),
# add electorate, turnout and spoilt ballots, and number of ballots
# if we have them
electorate=result.get("electorate", None),
turnout=result.get("turnout", None),
spoilt_ballots=result.get("spoiledvote", None),
ballot_papers=result.get("numballotpapersissued", None),
post=ballot.post,
election=ballot.election,
)
Expand Down

0 comments on commit d0a73e6

Please sign in to comment.