fix: [json import API] remove list input

pull/497/head
Terrtia 2020-04-28 16:44:19 +02:00
parent 6f3cb17beb
commit ead24038d9
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 3 additions and 4 deletions

View File

@ -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)