From e7aa9c26605f390d982d2f4d45e218f82e327542 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Mon, 19 May 2025 17:41:52 +0200 Subject: [PATCH] modified: app.py --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index c7f2b91..aa4db6b 100644 --- a/app.py +++ b/app.py @@ -78,7 +78,7 @@ def get_all_playlist_tracks(sp, playlist_id): @app.route("/") def home(): - return render_template("login.html") + return render_template("login.html", translations=get_translations()) @app.route("/login") def login(): @@ -109,7 +109,7 @@ def callback(): def playlists(): sp = get_spotify_client() playlists = sp.current_user_playlists()["items"] - return render_template("playlists.html", playlists=playlists) + return render_template("playlists.html", playlists=playlists, translations=get_translations()) @app.route("/quiz/") def quiz(playlist_id): @@ -272,7 +272,7 @@ def logout(): @app.route('/') def index(): user = session.get('user') # Benutzerinfos aus der Session holen, falls vorhanden - return render_template('index.html', user=user) + return render_template('index.html', user=user, translations=get_translations()) @app.route("/reset_quiz/") def reset_quiz(playlist_id):