From d2295cb93b523fcb22e39dff307c9120aaa58981 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 29 Sep 2011 22:14:46 +0200 Subject: [PATCH] Mark elected candidates in assignment pdf. --- openslides/utils/pdf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openslides/utils/pdf.py b/openslides/utils/pdf.py index 16ad4cbd8..454eb3eb1 100755 --- a/openslides/utils/pdf.py +++ b/openslides/utils/pdf.py @@ -548,7 +548,11 @@ def get_assignment(assignment, story): # add result rows for candidate in results: row = [] - row.append(str(candidate[0][0])) + if candidate[0][1]: + elected = "* " + else: + elected = "" + row.append(elected+str(candidate[0][0])) for votes in candidate[1]: if type(votes) == type(list()): tmp = "list" @@ -594,6 +598,7 @@ def get_assignment(assignment, story): data.append([cell1a,cell1b]) if table_votes: data.append([cell3a,table_votes]) + data.append(['','* = '+_('elected')]) else: data.append([cell2a,cell2b]) data.append([Spacer(0,0.2*cm),''])