Skip to content

Commit

Permalink
group response output
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobas committed Nov 16, 2022
1 parent c46713a commit 613ea91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async def upload(file: FileManager, url: str, session: aiohttp.ClientSession, se
if 200 <= res.status <= 300:
response = await res.json()
ref = response['reference']
resp_dict = {"file": file.name, "reference": ref }
resp_dict = { "item": [ { "file": file.name, "reference": ref, } ] }
else:
print(res.status)
response_dict(resp_dict)
Expand Down

0 comments on commit 613ea91

Please sign in to comment.