Browse code

"list staffers pdf"

Doug Le Tough authored on 09/05/2018 09:02:03
Showing 1 changed files
... ...
@@ -1128,16 +1128,15 @@ def print_users():
1128 1128
                                 spaceAfter=10
1129 1129
                                 ))
1130 1130
 
1131
+      rows = []
1131 1132
       for staffer in staffers:
1132
-        rows = []
1133 1133
         row = (Paragraph(staffer.name, styles['row2']), Paragraph(staffer.phone, styles['row2']), Paragraph(staffer.diet, styles['row2']))
1134
-        table = Table(rows, colWidths=cols_width, rowHeights=23)
1135 1134
         rows.append(row)
1136
-        table = Table(rows, colWidths=cols_width, rowHeights=23)
1137
-        table.setStyle(TableStyle( [('GRID', (0,0), (-1,-1), 0.25, colors.black),
1138
-                                      ('ALIGN', (1,1), (-1,-1), 'RIGHT')]))
1139
-        elements.append(table)
1140 1135
 
1136
+      table = Table(rows, colWidths=cols_width, rowHeights=23)
1137
+      table.setStyle(TableStyle( [('GRID', (0,0), (-1,-1), 0.25, colors.black),
1138
+                                    ('ALIGN', (1,1), (-1,-1), 'RIGHT')]))
1139
+      elements.append(table)
1141 1140
         
1142 1141
         #~ wday = day[0]
1143 1142
         #~ day_turns = day[1]