OP-2427 - conform to expected format for front end

This commit is contained in:
Petr Kalis 2022-01-20 16:16:24 +01:00
parent 69a90001d3
commit a6809a69aa

View file

@ -308,7 +308,9 @@ class BatchStatusEndpoint(_RestApiEndpoint):
if output:
status = 200
else:
output = {"msg": "Batch id {} not found".format(batch_id)}
output = {"msg": "Batch id {} not found".format(batch_id),
"status": "queued",
"progress": 0}
status = 404
body = self.resource.encode(output)
return Response(