浏览代码

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"],


正在加载...
取消
保存