This commit is contained in:
Mateusz779 2023-04-14 15:49:19 +02:00
parent 8a5e5f0ce8
commit a2a0452db8

5
app.py
View File

@ -162,9 +162,8 @@ def release_allocation():
return jsonify(message="400")
except:
pass
print(id_allocation)
if id_allocation is not None:
print(db.del_image_allocation_id_image(id_allocation))
db.del_image_allocation_id_image(id_allocation)
else:
return jsonify(message="404")
@ -174,7 +173,7 @@ def release_allocation():
def add_ip():
try:
token = request.headers['token']
ip = request.headers['ip']
ip = request.data['ip']
except:
pass
print(token, ip)