mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [json import API] remove list input
This commit is contained in:
parent
6f3cb17beb
commit
ead24038d9
1 changed files with 3 additions and 4 deletions
|
@ -104,8 +104,7 @@ def api_import_json_item(data_json):
|
||||||
return ({'status': 'error', 'reason': 'Malformed JSON'}, 400)
|
return ({'status': 'error', 'reason': 'Malformed JSON'}, 400)
|
||||||
|
|
||||||
# # TODO: add JSON verification
|
# # TODO: add JSON verification
|
||||||
for item_json in data_json:
|
res = add_json_to_json_queue(item_json)
|
||||||
res = add_json_to_json_queue(item_json)
|
if res:
|
||||||
if res:
|
return ({'status': 'error'}, 400)
|
||||||
return ({'status': 'error'}, 400)
|
|
||||||
return ({'status': 'success'}, 200)
|
return ({'status': 'success'}, 200)
|
||||||
|
|
Loading…
Reference in a new issue