parent
3dd322475f
commit
0e769c3de6
3 changed files with 240 additions and 128 deletions
|
|
@ -107,7 +107,6 @@ async def index() -> str:
|
|||
events=events,
|
||||
get_country=agenda.get_country,
|
||||
current_trip=get_current_trip(today),
|
||||
fullcalendar_events=calendar.build_events(events),
|
||||
start_event_list=date.today() - timedelta(days=1),
|
||||
end_event_list=date.today() + timedelta(days=365 * 2),
|
||||
render_time=(time.time() - t0),
|
||||
|
|
@ -129,11 +128,13 @@ async def calendar_page() -> str:
|
|||
if markets_arg != "show":
|
||||
agenda.data.hide_markets_while_away(events, data["accommodation_events"])
|
||||
|
||||
# Use the new function to build events and pass both calendars and events
|
||||
return flask.render_template(
|
||||
"calendar.html",
|
||||
today=now.date(),
|
||||
events=events,
|
||||
fullcalendar_events=calendar.build_events(events),
|
||||
toastui_events=calendar.build_toastui_events(events),
|
||||
toastui_calendars=calendar.toastui_calendars,
|
||||
**data,
|
||||
)
|
||||
|
||||
|
|
@ -374,6 +375,7 @@ def past_conference_list() -> str:
|
|||
fx_rate=agenda.fx.get_rates(app.config),
|
||||
)
|
||||
|
||||
|
||||
@app.route("/accommodation")
|
||||
def accommodation_list() -> str:
|
||||
"""Page showing a list of past, present and future accommodation."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue