Madiwka3 1 anno fa
parent
commit
b704b274d0
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      app/db/repository/report.py

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

@@ -271,7 +271,9 @@ def get_pdf(driver_id: int, db: Session):
"{} km".format(task["DistanceCovered"]),
task["Status"],
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)



Caricamento…
Annulla
Salva