zmiany w edycji listy przez usera
This commit is contained in:
6
app.py
6
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
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user