Browse Source

further fix

main
Madiwka3 1 year ago
parent
commit
b704b274d0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/db/repository/report.py

+ 3
- 1
app/db/repository/report.py View File

@@ -271,7 +271,9 @@ def get_pdf(driver_id: int, db: Session):
"{} km".format(task["DistanceCovered"]), "{} km".format(task["DistanceCovered"]),
task["Status"], task["Status"],
task["StartDateTime"].strftime("%m/%d/%Y, %H:%M:%S"), task["StartDateTime"].strftime("%m/%d/%Y, %H:%M:%S"),
parser.parse(task["EndDateTime"]).strftime("%m/%d/%Y, %H:%M:%S"),
parser.parse(task["EndDateTime"]).strftime("%m/%d/%Y, %H:%M:%S")
if type(task["EndDateTime"]) == str
else task["EndDateTime"].strftime("%m/%d/%Y, %H:%M:%S"),
] ]
tasks_info.append(task_info) tasks_info.append(task_info)




Loading…
Cancel
Save