|
@@ -71,7 +71,8 @@ def get_all_maintenance_jobs(db: Session): |
|
|
else: |
|
|
else: |
|
|
part["image"] = base64.b64encode(part["ImageURL"]).decode("ascii") |
|
|
part["image"] = base64.b64encode(part["ImageURL"]).decode("ascii") |
|
|
job_dict["TotalCost"] = calculate_total_cost(job.CarParts) |
|
|
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__ |
|
|
job_dict["Vehicle"] = job.Vehicle.__dict__ |
|
|
result.append(job_dict) |
|
|
result.append(job_dict) |
|
|
print("Returning...") |
|
|
print("Returning...") |
|
|