Fix --hide-excluded on CLI
This commit is contained in:
parent
a97b832b14
commit
37895d03ca
@ -80,7 +80,7 @@ def print_step(args, stage, result):
|
|||||||
if state is None:
|
if state is None:
|
||||||
print('- {}: {} ({})'.format(candidate.name, ppVotes, ppTransfers))
|
print('- {}: {} ({})'.format(candidate.name, ppVotes, ppTransfers))
|
||||||
else:
|
else:
|
||||||
if not (args.hide_excluded and state == 'Excluded' and float(ppVotes) == 0 and float(ppTransfers) == 0):
|
if not (args.hide_excluded and (count_card.state == pyRCV2.model.CandidateState.EXCLUDED or count_card.state == pyRCV2.model.CandidateState.EXCLUDING) and float(ppVotes) == 0 and float(ppTransfers) == 0):
|
||||||
print('- {}: {} ({}) - {}'.format(candidate.name, ppVotes, ppTransfers, state))
|
print('- {}: {} ({}) - {}'.format(candidate.name, ppVotes, ppTransfers, state))
|
||||||
|
|
||||||
print('Exhausted: {} ({})'.format(result.exhausted.votes.pp(args.pp_decimals), result.exhausted.transfers.pp(args.pp_decimals)))
|
print('Exhausted: {} ({})'.format(result.exhausted.votes.pp(args.pp_decimals), result.exhausted.transfers.pp(args.pp_decimals)))
|
||||||
|
Reference in New Issue
Block a user