From 1f2fc60683fe0e3a17500f0bbfbf54ed54477872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 15 Aug 2025 13:07:10 +0200 Subject: [PATCH] zmiany w edycji listy przez usera --- app.py | 6 ++++++ templates/edit_my_list.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 2e2e1c3..250aff1 100644 --- a/app.py +++ b/app.py @@ -1574,6 +1574,10 @@ def edit_my_list(list_id): db.session.commit() flash("Zaktualizowano dane listy", "success") return redirect(next_page or url_for("main_page")) + + now = datetime.now() + current_year = now.year + current_month = f"{now.month:02d}" return render_template( "edit_my_list.html", @@ -1581,6 +1585,8 @@ def edit_my_list(list_id): receipts=receipts, categories=categories, selected_categories=selected_categories_ids, + current_year=current_year, + current_month=current_month ) diff --git a/templates/edit_my_list.html b/templates/edit_my_list.html index bce7adf..5d1fa3b 100644 --- a/templates/edit_my_list.html +++ b/templates/edit_my_list.html @@ -67,12 +67,12 @@