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]