|
|
@@ -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) |
|
|
|
|
|
|
|