From 770d9056493e3646adb7751edde10cd6e88b7510 Mon Sep 17 00:00:00 2001 From: Mia Nordentoft Date: Thu, 15 Aug 2019 21:12:38 +0200 Subject: [PATCH] Added numberr of mentions of disqualified candidates to ranked pairs results screen --- src/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index d30ca7a..cbcf93c 100755 --- a/src/main.py +++ b/src/main.py @@ -102,7 +102,11 @@ def unhide_ballots (): if current_election_type == 'RP': if len(results['disqualified_candidates']): - results_text += '

Neelektitaj laŭ §2.6: %s

' % (', '.join(results['disqualified_candidates'])) + results_text += '

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 += '

' + results_text += '

Komparitaj paroj: ' for th in ('Paro', 'Gajnanto', 'Diferenco'):