From ea5f9a3f27951ed8ab85ac24621a22107076f436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Wed, 13 Aug 2025 14:21:31 +0200 Subject: [PATCH] zmiana month na m i poprawka w kolorach paginaci --- app.py | 2 +- templates/main.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index a033213..92408e0 100644 --- a/app.py +++ b/app.py @@ -1248,7 +1248,7 @@ def favicon(): @app.route("/") def main_page(): now = datetime.now(timezone.utc) - month_str = request.args.get("m") or now.strftime("%Y-%m") + month_str = request.args.get("month") or now.strftime("%Y-%m") start = end = None if month_str: diff --git a/templates/main.html b/templates/main.html index 02ddfb1..1f7fed3 100644 --- a/templates/main.html +++ b/templates/main.html @@ -33,7 +33,7 @@ {% set month_names = ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"] %} -{% set selected_month = request.args.get('m') or now.strftime('%Y-%m') %} +{% set selected_month = request.args.get('month') or now.strftime('%Y-%m') %}
@@ -230,7 +230,7 @@ {% for offset in range(0, 6) %} {% set d = (now - timedelta(days=offset * 30)) %} {% set val = d.strftime('%Y-%m') %} - + {{ month_names[d.month - 1] }} {{ d.year }} {% endfor %}