bug
This commit is contained in:
parent
9c07b62126
commit
2ebacf8563
2
app.py
2
app.py
@ -133,7 +133,7 @@ def delete(image_id):
|
|||||||
if db.get_user_bytoken(auth_token) is None:
|
if db.get_user_bytoken(auth_token) is None:
|
||||||
return redirect("/login")
|
return redirect("/login")
|
||||||
|
|
||||||
if db.get_image_allocation_all_id() is not None:
|
if db.get_image_allocation(image_id) is not None:
|
||||||
return jsonify(message="409")
|
return jsonify(message="409")
|
||||||
filename = db.get_conf_image_id(image_id)
|
filename = db.get_conf_image_id(image_id)
|
||||||
squashfs = os.path.join(app.config['UPLOAD_FOLDER'], filename)
|
squashfs = os.path.join(app.config['UPLOAD_FOLDER'], filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user