From 0c9187d6e2eb185c5363e1e5072b8a6466985b5c Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Wed, 9 May 2018 11:02:03 +0200 Subject: [PATCH] "list staffers pdf" --- participate.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/participate.py b/participate.py index 12244fb..f6e7ed0 100755 --- a/participate.py +++ b/participate.py @@ -1128,16 +1128,15 @@ def print_users(): spaceAfter=10 )) + rows = [] for staffer in staffers: - rows = [] row = (Paragraph(staffer.name, styles['row2']), Paragraph(staffer.phone, styles['row2']), Paragraph(staffer.diet, styles['row2'])) - table = Table(rows, colWidths=cols_width, rowHeights=23) rows.append(row) - table = Table(rows, colWidths=cols_width, rowHeights=23) - table.setStyle(TableStyle( [('GRID', (0,0), (-1,-1), 0.25, colors.black), - ('ALIGN', (1,1), (-1,-1), 'RIGHT')])) - elements.append(table) + table = Table(rows, colWidths=cols_width, rowHeights=23) + table.setStyle(TableStyle( [('GRID', (0,0), (-1,-1), 0.25, colors.black), + ('ALIGN', (1,1), (-1,-1), 'RIGHT')])) + elements.append(table) #~ wday = day[0] #~ day_turns = day[1]