We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54dd01a commit 0aea769Copy full SHA for 0aea769
src/scaup/crud/pdf.py
@@ -446,7 +446,7 @@ def generate_report(shipment_id: int, token: str):
446
gridbox_name: str = grid.container.name if grid.container else "None"
447
gridbox_location: str = str(grid.container.location) if grid.container is not None else "None"
448
449
- grids_table[current_row] = (
+ row_text = (
450
str(puck_name),
451
str(gridbox_location),
452
str(gridbox_name),
@@ -456,6 +456,12 @@ def generate_report(shipment_id: int, token: str):
456
str(grid.details["hole"]),
457
str(grid.comments),
458
)
459
+
460
+ if current_row >= len(grids_table):
461
+ grids_table.append(row_text)
462
+ else:
463
+ grids_table[current_row] = row_text
464
465
current_row += 1
466
467
session_table = [
0 commit comments