diff --git a/app.py b/app.py index f513e59..8b4d08e 100644 --- a/app.py +++ b/app.py @@ -1268,7 +1268,7 @@ def favicon(): def main_page(): now = datetime.now(timezone.utc) - month_param = request.args.get("month", None) # surowy parametr z URL + month_param = request.args.get("m", None) start = end = None if month_param in (None, ""): diff --git a/templates/main.html b/templates/main.html index fc09631..c7d3f49 100644 --- a/templates/main.html +++ b/templates/main.html @@ -39,7 +39,7 @@ 📅 Wybierz miesiąc: + onchange="window.location.search='?m='+this.value"> {% for m in month_options %} {% set year, month = m.split('-') %} @@ -231,12 +231,12 @@ {% for m in month_options %} {% set year, month = m.split('-') %} - {{ month_names[month|int - 1] }} {{ year }} {% endfor %} - 📋 Wyświetl wszystkie