Commit baf12b9d authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

Merge branch 'fix-api-job-url-generation' into 'django'

fix the generation of the job uri

See merge request !184
parents 8c7b82a2 133ad4a0
Pipeline #128777 failed with stages
in 1 second
......@@ -84,12 +84,13 @@ def jobs(request):
job.state = Job.WAITING
job.save()
no_domain_url = reverse('api:job', kwargs={'pk':job.id})
path = reverse('api:job', kwargs={'pk':job.id})
response = {
"avg_time": 0, # legacy, not relevant anymore
"id" : job.id,
"url" : request.build_absolute_uri(no_domain_url),
"url" : get_base_url(request)+path,
}
return JsonResponse(response)
......
Markdown is supported
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