had to remove the :int on route for Flask to load now - a library was failing with a converter / lookup failure

This commit is contained in:
2023-09-18 22:26:30 +10:00
parent b636ac08b8
commit 4f67cb30d9

2
ai.py
View File

@@ -155,7 +155,7 @@ def unmatched_faces():
################################################################################ ################################################################################
@app.route("/get_face_from_image/<face_id:int>", methods=["POST"]) @app.route("/get_face_from_image/<face_id>", methods=["POST"])
@login_required @login_required
def get_face_from_image(face_id): def get_face_from_image(face_id):
""" route to handle URL: /get_face_from_image/<face_id:int> """ route to handle URL: /get_face_from_image/<face_id:int>