now.date()
This commit is contained in:
parent
5d88485c48
commit
d7b636784d
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue