Fix bug in ERS97 implementation

Do not attempt to elect candidates already elected
This commit is contained in:
RunasSudo 2021-01-07 03:59:49 +11:00
parent 14b1dfb787
commit 04f1b9c177
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -597,6 +597,7 @@ class BaseSTVCounter:
if self.options['quota_mode'] == 'ers97': if self.options['quota_mode'] == 'ers97':
self.compute_quota() self.compute_quota()
self.elect_meeting_quota() # Repeat as the vote required for election may have changed self.elect_meeting_quota() # Repeat as the vote required for election may have changed
return
# ----------------- # -----------------
# UTILITY FUNCTIONS # UTILITY FUNCTIONS