-
This commit is contained in:
parent
8a5e5f0ce8
commit
a2a0452db8
5
app.py
5
app.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user