This commit is contained in:
Mateusz779 2023-04-14 14:16:03 +02:00
parent 7b3b1041ff
commit 167a444349

6
app.py
View File

@ -157,12 +157,12 @@ def get_image():
@app.route("/api/release_allocation", methods=['POST'])
def release_allocation():
try:
name = db.get_conf_image(request.headers['name'])
if name is None or name == "":
id_allocation = db.get_conf_id_name(request.headers['name'])
if id_allocation is None or id_allocation == "":
return jsonify(message="400")
except:
pass
id_allocation = db.get_conf_id_name(name)
if id_allocation is not None:
db.del_image_allocation_id(id_allocation)
else: