Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
That thing again. #98.
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jan 27, 2016
1 parent e26ad17 commit 3121965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elections/ap.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def _get_results(self, ftp=None):
ballotOrder=candidate.ballotorder,
# Results
voteCount=int(candrow['vote_count']),
votePct=calculate.percentage(int(candrow['vote_count']), votes_total, multiply=False),
votePct=calculate.percentage(int(candrow['vote_count']), votes_total, multiply=False) or 0.0,
winner=candrow['is_winner'],
# Reporting unit
level=reporting_unit.level,
Expand All @@ -554,7 +554,7 @@ def _get_results(self, ftp=None):
reporting_unit.precinctsreporting,
reporting_unit.precinctstotal,
multiply=False
)
) or 0.0
reporting_unit.votecount = votes_total


Expand Down

0 comments on commit 3121965

Please sign in to comment.