Skip to content

Commit

Permalink
Merge pull request #2 from 2byrds/no_uploads_list
Browse files Browse the repository at this point in the history
No uploads should is a list
  • Loading branch information
2byrds authored May 12, 2024
2 parents 3a3fdfa + c4adb03 commit d7ab449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regps/app/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def on_get(self, req: falcon.Request, resp: falcon.Response, aid):
if len(responses) == 0:
print(f"StatusTask.on_get: Empty upload status list for aid {aid}")
resp.status = falcon.HTTP_200
resp.data = json.dumps(dict(msg="No uploads found")).encode("utf-8")
resp.data = json.dumps([dict(msg="No uploads found")]).encode("utf-8")
return resp
else:
print(f"StatusTask.on_get: received data {json.dumps(resp.data)}")
Expand Down

0 comments on commit d7ab449

Please sign in to comment.