Add gaps page

This commit is contained in:
Edward Betts 2023-12-27 08:22:53 +00:00
parent 69478e1543
commit 5805c49fe3

View file

@ -61,6 +61,14 @@ async def index() -> str:
return flask.render_template("index.html", today=now.date(), **data)
@app.route("/gaps")
async def gaps_page() -> str:
"""List of available gaps."""
now = datetime.now()
data = await agenda.data.get_data(now, app.config)
return flask.render_template("gaps.html", today=now.date(), gaps=data["gaps"])
@app.route("/travel")
def travel_list() -> str:
"""Page showing a list of upcoming travel."""