"list staffers pdf"

This commit is contained in:
Doug Le Tough 2018-05-09 11:02:03 +02:00
parent d03c1be74a
commit 0c9187d6e2

View File

@ -1128,17 +1128,16 @@ def print_users():
spaceAfter=10
))
for staffer in staffers:
rows = []
for staffer in staffers:
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)
#~ wday = day[0]
#~ day_turns = day[1]
#~ cur_role = ''