Skip to content

Commit

Permalink
Merge pull request #62 from AungA07/report_fix
Browse files Browse the repository at this point in the history
fixing error cause because of wrong index in reports.py
  • Loading branch information
AungA07 authored Dec 4, 2024
2 parents 56a43df + 5570de8 commit 58dc416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 58dc416

Please sign in to comment.