Remove index route

This commit is contained in:
MathiasDPX 2024-09-20 21:47:55 +02:00 committed by GitHub
parent 97f6db0155
commit 0e8b3523b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
app.py
View file

@ -104,7 +104,6 @@ def translateDay(weekday: int):
case _: return "???"
@app.route('/')
@app.route('/index')
def home():
delta = request.args.get("delta", default=0, type=int)
@ -126,4 +125,4 @@ def home():
return render_template('index.html', page_actuelle='home', films=showtimes[delta], dates=dates)
if __name__ == '__main__':
app.run()
app.run()