Fix error/bug when excluding candidates in exclusive Gregory
This commit is contained in:
parent
7ad142f19d
commit
c9ff0a16fb
@ -104,6 +104,7 @@ function stepElection() {
|
|||||||
postMessage({'type': 'require_input', 'message': ex.message});
|
postMessage({'type': 'require_input', 'message': ex.message});
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
console.error(ex);
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -127,6 +127,7 @@ class ParcelledEGSTVCounter(UIGSTVCounter):
|
|||||||
next_preferences = SafeDict([(c, []) for c, cc in self.candidates.items()])
|
next_preferences = SafeDict([(c, []) for c, cc in self.candidates.items()])
|
||||||
next_exhausted = []
|
next_exhausted = []
|
||||||
|
|
||||||
|
if len(count_card.parcels) > 0:
|
||||||
parcel = count_card.parcels[0]
|
parcel = count_card.parcels[0]
|
||||||
count_card.parcels.remove(parcel)
|
count_card.parcels.remove(parcel)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user