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
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ where
} else { } 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$}"#, 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 // Totals
stage_results[4 + election.candidates.len()].push(String::new()); stage_results[4 + election.candidates.len()].push(String::new());