From 10c5f0fffd3f70bc0940e778ddaa88c5c58115c1 Mon Sep 17 00:00:00 2001 From: Stef Date: Sat, 18 Oct 2025 14:52:35 +0200 Subject: [PATCH] Quick fix for url name issues --- application/add_meal/routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/add_meal/routes.py b/application/add_meal/routes.py index bed74a2..f613ec8 100644 --- a/application/add_meal/routes.py +++ b/application/add_meal/routes.py @@ -49,8 +49,9 @@ def find_item(): return render_template("find_item.html") +# TODO: Switch from this to query parameters / url args @date_present -@bp.route("/select_item/", methods=["GET"]) +@bp.route("/select_item/", methods=["GET"]) def select_item(input: str): # Check if input is a barcode if input.isdigit(): @@ -69,7 +70,7 @@ def select_item(input: str): @date_present -@bp.route("/add_new_item/", methods=["GET"]) +@bp.route("/add_new_item/", methods=["GET"]) def add_new_item(input: str): form = FoodItemForm() @@ -81,7 +82,7 @@ def add_new_item(input: str): @date_present -@bp.route("/add_new_item/", methods=["POST"]) +@bp.route("/add_new_item/", methods=["POST"]) def post_new_item(input: str): form = FoodItemForm()