wip: programme

This commit is contained in:
mco-system
2023-04-09 17:29:44 +11:00
parent b27a73e95c
commit 75e44fa9fd
19 changed files with 319 additions and 327 deletions

View File

@@ -52,6 +52,10 @@ except Exception as err:
def page_not_found(err):
return redirect(url_for('index'))
def get_days():
days = ["26/05", "27/05", "28/05"]
return [{"title": f"Jour #{index+1}", "date": day} for index, day in enumerate(days)]
# ------------------------------------------------------------------------------
# -- Custom filters
# ------------------------------------------------------------------------------
@@ -95,7 +99,8 @@ def index():
def planning():
slots = backend.get(endpoint=f"events/{app.local_config['pretalx']['event']}/schedules/{app.local_config['pretalx']['schedule']}").json()
return render_template("planning.html",
slots=slots["slots"],
slots=sorted(slots["slots"],
key=lambda slot: slot["slot"]["start"]),
navbar=navbar.get_from_page(page="/planning"))
@app.route('/place', methods=['GET'])