This commit is contained in:
Edward Betts 2024-08-07 06:26:42 +01:00
parent 23aa70bb84
commit cf298f261f

View file

@ -121,6 +121,7 @@ async def calendar_page() -> str:
@app.route("/recent")
async def recent() -> str:
"""Index page."""
t0 = time.time()
now = datetime.now()
data = await agenda.data.get_data(now, app.config)
@ -139,6 +140,7 @@ async def recent() -> str:
fullcalendar_events=calendar.build_events(events),
start_event_list=date.today() - timedelta(days=14),
end_event_list=date.today(),
render_time=(time.time() - t0),
**data,
)