Browse Source

reporter fix

main
Madiwka3 11 months ago
parent
commit
645810a8b9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/db/repository/report.py

+ 4
- 0
app/db/repository/report.py View File

@@ -260,6 +260,10 @@ def get_pdf(driver_id: int, db: Session):
tasks_info = [] tasks_info = []


for task in tasks_data: for task in tasks_data:
if task.get("EndDateTime") is None or task["EndDateTime"] == "":
continue
if task.get("StartDateTime") is None or task["StartDateTime"] == "":
continue
task_info = [ task_info = [
f"{task['Id']}", f"{task['Id']}",
task["Description"], task["Description"],


Loading…
Cancel
Save