-
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")
|
return jsonify(message="400")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
print(id_allocation)
|
|
||||||
if id_allocation is not None:
|
if id_allocation is not None:
|
||||||
print(db.del_image_allocation_id_image(id_allocation))
|
db.del_image_allocation_id_image(id_allocation)
|
||||||
else:
|
else:
|
||||||
return jsonify(message="404")
|
return jsonify(message="404")
|
||||||
|
|
||||||
|
@ -174,7 +173,7 @@ def release_allocation():
|
||||||
def add_ip():
|
def add_ip():
|
||||||
try:
|
try:
|
||||||
token = request.headers['token']
|
token = request.headers['token']
|
||||||
ip = request.headers['ip']
|
ip = request.data['ip']
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
print(token, ip)
|
print(token, ip)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user