now.date()

This commit is contained in:
Edward Betts 2025-01-11 15:18:45 -06:00
parent 5d88485c48
commit d7b636784d

View file

@ -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),