Commit 3412252f authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

Report job error states in the API

(to keep consistent with the rails implementation)

fix #349
fix #356
parent a7d0b5eb
......@@ -34,7 +34,7 @@ class APIJobView(JobAuthMixin, View):
response = { files,
"status": job.get_state_display().lower(),
"status": "done" if job.result==Job.SUCCESS else job.status.lower(),
return JsonResponse(response)
except Job.DoesNotExist as e:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment