6 Commits

Author SHA1 Message Date
10c5f0fffd Quick fix for url name issues 2025-10-18 14:52:35 +02:00
b83d2e1bd9 Merge branch 'main' into development 2025-10-18 14:42:51 +02:00
Stef
7fb75d46af Merge branch 'main' into development 2025-10-08 19:10:34 +02:00
70eef5b9a2 Daily log now sums up amount per item in a day 2025-10-08 19:08:44 +02:00
Stef
cef3d63ca2 Change password + New base (#10)
* created a new Base template to test with

* Changed out the base and added a new password page

* Password change works, UI needs redisgn
2025-10-08 15:28:50 +02:00
b379b59eec Adjusted GUI of daily dashboard to better deal with float values 2025-10-08 11:55:56 +02:00

View File

@@ -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/<string:input>", methods=["GET"])
@bp.route("/select_item/<path:input>", 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/<string:input>", methods=["GET"])
@bp.route("/add_new_item/<path:input>", 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/<string:input>", methods=["POST"])
@bp.route("/add_new_item/<path:input>", methods=["POST"])
def post_new_item(input: str):
form = FoodItemForm()