From 3121965a25189d6d61df8c613d8d955b380cba7c Mon Sep 17 00:00:00 2001 From: palewire Date: Wed, 27 Jan 2016 10:08:55 -0800 Subject: [PATCH] That thing again. #98. --- elections/ap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elections/ap.py b/elections/ap.py index c3cebb7..55772a3 100644 --- a/elections/ap.py +++ b/elections/ap.py @@ -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, @@ -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