"list staffers pdf"

This commit is contained in:
Doug Le Tough 2018-05-09 11:02:03 +02:00
parent d03c1be74a
commit 0c9187d6e2
1 changed files with 5 additions and 6 deletions

View File

@ -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]