(cont.) Take num_to_exclude into consideration for bulk exclusion
This commit is contained in:
parent
09c4a375a7
commit
18c974117e
@ -1164,7 +1164,7 @@ fn can_bulk_elect<N: Number>(state: &CountState<N>, num_to_exclude: usize) -> bo
|
|||||||
})
|
})
|
||||||
.count();
|
.count();
|
||||||
|
|
||||||
if num_hopefuls > 0 && state.num_elected + num_hopefuls - num_to_exclude <= state.election.seats {
|
if num_hopefuls - num_to_exclude > 0 && state.num_elected + num_hopefuls - num_to_exclude <= state.election.seats {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user