bug
This commit is contained in:
parent
7b3b1041ff
commit
167a444349
6
app.py
6
app.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user