diff --git a/app.py b/app.py index 1d0c600..f513e59 100644 --- a/app.py +++ b/app.py @@ -1434,7 +1434,8 @@ def main_page(): archived_lists=archived_lists, now=now, timedelta=timedelta, - month_options=month_options + month_options=month_options, + selected_month=month_str ) diff --git a/templates/main.html b/templates/main.html index b1dc50c..fc09631 100644 --- a/templates/main.html +++ b/templates/main.html @@ -33,7 +33,6 @@ {% set month_names = ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"] %} -{% set selected_month = selected_month or now.strftime('%Y-%m') %}