瀏覽代碼

reporter fix

main
Madiwka3 11 月之前
父節點
當前提交
645810a8b9
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      app/db/repository/report.py

+ 4
- 0
app/db/repository/report.py 查看文件

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

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 = [
f"{task['Id']}",
task["Description"],


Loading…
取消
儲存