瀏覽代碼

fixed some bugs

main
Madiwka 1 年之前
父節點
當前提交
d2b6314e71
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      app/db/repository/maintenancejob.py

+ 2
- 1
app/db/repository/maintenancejob.py 查看文件

@@ -71,7 +71,8 @@ def get_all_maintenance_jobs(db: Session):
else:
part["image"] = base64.b64encode(part["ImageURL"]).decode("ascii")
job_dict["TotalCost"] = calculate_total_cost(job.CarParts)
job_dict["AssignedTo"] = job.CreatedBy.__dict__
if job.Status == "Complete":
job_dict["FinishedBy"] = job.FinishedBy.__dict__
job_dict["Vehicle"] = job.Vehicle.__dict__
result.append(job_dict)
print("Returning...")


Loading…
取消
儲存