Fix logic errors - eek!

This commit is contained in:
RunasSudo 2020-10-18 00:38:07 +11:00
parent 24a0a140c7
commit e4bd80c26d
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -96,7 +96,7 @@ class STVCCounter:
__pragma__('opov')
surplus = count_card.votes - self.quota
transfer_value = surplus / self.quota
transfer_value = surplus / count_card.votes
count_card.transfers -= surplus
__pragma__('noopov')
@ -165,7 +165,7 @@ class STVCCounter:
# Compute quota
__pragma__('opov')
total = sum((cc.votes for c, cc in self.candidates.items()), Num('0'))
self.quota = total / Num(self.election.seats)
self.quota = total / Num(self.election.seats + 1)
__pragma__('noopov')
def elect_meeting_quota(self):