wip: programme
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user