Fix regression with single stage exclusion

This commit is contained in:
RunasSudo 2021-06-09 22:34:44 +10:00
parent 7ef5ae99b6
commit 537f1f0011
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -972,7 +972,7 @@ where
for excluded_candidate in excluded_candidates.iter() {
let count_card = state.candidates.get_mut(excluded_candidate).unwrap();
votes.append(&mut count_card.parcels.concat());
//count_card.parcels.clear();
count_card.parcels.clear();
// Update votes
let votes_transferred = votes.iter().fold(N::new(), |acc, v| acc + &v.value);