Skip to content

Commit

Permalink
Added numberr of mentions of disqualified candidates to ranked pairs …
Browse files Browse the repository at this point in the history
…results screen
  • Loading branch information
miestasmia committed Aug 15, 2019
1 parent 853aeab commit 770d905
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def unhide_ballots ():

if current_election_type == 'RP':
if len(results['disqualified_candidates']):
results_text += '<p>Neelektitaj laŭ §2.6: %s</p>' % (', '.join(results['disqualified_candidates']))
results_text += '<p>Neelektitaj laŭ §2.6: '
disc_cands = list(map(lambda c: '%s (%d mencioj)' % (c, results['cand_stats'][c]['mentions']), results['disqualified_candidates']))
results_text += ', '.join(disc_cands)
results_text += '</p>'

results_text += '<p>Komparitaj paroj: <table border="1"><tr>'

for th in ('Paro', 'Gajnanto', 'Diferenco'):
Expand Down

0 comments on commit 770d905

Please sign in to comment.