Fix interaction between --exclusion parcels_by_order and --min-threshold when excluding candidates with 0 votes
This commit is contained in:
parent
0af8d8a4d6
commit
f706d7423b
|
@ -510,9 +510,9 @@ where
|
||||||
}
|
}
|
||||||
ExclusionMethod::ParcelsByOrder => {
|
ExclusionMethod::ParcelsByOrder => {
|
||||||
// Exclude by parcel by order
|
// Exclude by parcel by order
|
||||||
if excluded_candidates.len() > 1 {
|
if excluded_candidates.len() > 1 && excluded_candidates.iter().any(|c| !state.candidates[c].parcels.is_empty()) {
|
||||||
// TODO: We can probably support this actually
|
// TODO: We can probably support this actually
|
||||||
panic!("--exclusion parcels_by_order is incompatible with --bulk-exclude");
|
panic!("--exclusion parcels_by_order is incompatible with multiple exclusions");
|
||||||
}
|
}
|
||||||
|
|
||||||
let count_card = state.candidates.get_mut(excluded_candidates[0]).unwrap();
|
let count_card = state.candidates.get_mut(excluded_candidates[0]).unwrap();
|
||||||
|
|
Loading…
Reference in New Issue