Fix error/bug when excluding candidates in exclusive Gregory

This commit is contained in:
RunasSudo 2020-12-27 23:30:54 +11:00
parent 7ad142f19d
commit c9ff0a16fb
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 37 additions and 35 deletions

View File

@ -104,6 +104,7 @@ function stepElection() {
postMessage({'type': 'require_input', 'message': ex.message});
break;
} else {
console.error(ex);
throw ex;
}
}

View File

@ -127,6 +127,7 @@ class ParcelledEGSTVCounter(UIGSTVCounter):
next_preferences = SafeDict([(c, []) for c, cc in self.candidates.items()])
next_exhausted = []
if len(count_card.parcels) > 0:
parcel = count_card.parcels[0]
count_card.parcels.remove(parcel)