diff --git a/reports.py b/reports.py index 98db172..d86d8ba 100644 --- a/reports.py +++ b/reports.py @@ -73,8 +73,8 @@ def create_class_pdf(self, file_name, company_name, title): # Name and total hours:minutes c.setFont("Helvetica", 12) c.drawString(80, y_pos, row[1]) - hours = row[-1] // 60 - minutes = row[-1] % 60 + hours = row[5] // 60 + minutes = row[5] % 60 c.drawCentredString(360, y_pos, f"{hours}:{minutes}") y_pos -= 16