From 04f1b9c1773147767d389004c62ce36800e83588 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Thu, 7 Jan 2021 03:59:49 +1100 Subject: [PATCH] Fix bug in ERS97 implementation Do not attempt to elect candidates already elected --- pyRCV2/method/base_stv.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyRCV2/method/base_stv.py b/pyRCV2/method/base_stv.py index 3c7372e..95164f2 100644 --- a/pyRCV2/method/base_stv.py +++ b/pyRCV2/method/base_stv.py @@ -597,6 +597,7 @@ class BaseSTVCounter: if self.options['quota_mode'] == 'ers97': self.compute_quota() self.elect_meeting_quota() # Repeat as the vote required for election may have changed + return # ----------------- # UTILITY FUNCTIONS