Fix logic error with CSV reporting of nontransferables with invalid votes

This commit is contained in:
RunasSudo 2021-09-10 00:46:07 +10:00
parent d222207318
commit 4dd748186f
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -543,7 +543,7 @@ where
} else {
stage_results[3 + election.candidates.len()].push(format!(r#"{:.dps$}"#, nt_transfers, dps=opts.pp_decimals));
}
stage_results[3 + election.candidates.len()].push(format!(r#"{:.dps$}"#, &state.exhausted.votes + &state.loss_fraction.votes, dps=opts.pp_decimals));
stage_results[3 + election.candidates.len()].push(format!(r#"{:.dps$}"#, &state.exhausted.votes + &state.loss_fraction.votes - &invalid_votes, dps=opts.pp_decimals));
// Totals
stage_results[4 + election.candidates.len()].push(String::new());