modified: app.py
This commit is contained in:
5
app.py
5
app.py
@@ -286,11 +286,6 @@ def logout():
|
||||
session.clear()
|
||||
return redirect(url_for('home'))
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
user = session.get('user') # Benutzerinfos aus der Session holen, falls vorhanden
|
||||
return render_template('index.html', user=user, translations=get_translations())
|
||||
|
||||
@app.route("/reset_quiz/<playlist_id>")
|
||||
def reset_quiz(playlist_id):
|
||||
session.pop(f'played_tracks_{playlist_id}', None)
|
||||
|
||||
Reference in New Issue
Block a user