[DEV] add list of ids with specific sha512

This commit is contained in:
Edouard DUPIN 2020-01-14 21:24:08 +01:00
parent c79943ab80
commit 8c2a836e65

View File

@ -71,7 +71,7 @@ def add(_app, _name_api):
async def check_existance(request, sha512):
value = data_global_elements.get_interface(_name_api).gets_where(select=[["==", "sha512", sha512]], filter=["id"])
if value != None:
return response.json({"found":True})
return response.json({"found":True, "ids":value})
raise ServerError("No data found", status_code=404)