mirror of https://github.com/CIRCL/AIL-framework
fix: [json import API] remove list input
parent
6f3cb17beb
commit
ead24038d9
|
@ -104,8 +104,7 @@ def api_import_json_item(data_json):
|
|||
return ({'status': 'error', 'reason': 'Malformed JSON'}, 400)
|
||||
|
||||
# # TODO: add JSON verification
|
||||
for item_json in data_json:
|
||||
res = add_json_to_json_queue(item_json)
|
||||
if res:
|
||||
return ({'status': 'error'}, 400)
|
||||
res = add_json_to_json_queue(item_json)
|
||||
if res:
|
||||
return ({'status': 'error'}, 400)
|
||||
return ({'status': 'success'}, 200)
|
||||
|
|
Loading…
Reference in New Issue