From d7b636784d89f28d95d86fd88e2eb8cf650460e0 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 11 Jan 2025 15:18:45 -0600 Subject: [PATCH] now.date() --- web_view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_view.py b/web_view.py index c485657..e400bb1 100755 --- a/web_view.py +++ b/web_view.py @@ -90,6 +90,7 @@ async def index() -> str: data = await agenda.data.get_data(now, app.config) events = data.pop("events") + today = now.date() markets_arg = flask.request.args.get("markets") if markets_arg == "hide": @@ -99,7 +100,7 @@ async def index() -> str: return flask.render_template( "event_list.html", - today=now.date(), + today=today, events=events, current_trip=get_current_trip(now.date()), fullcalendar_events=calendar.build_events(events),