diff --git a/main.py b/main.py index df6ed61..9cdc9ac 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,6 @@ def create_playlist(): data = requests.get((os.getenv("n8n_webhook_create_playlist") + "/" + str(roomid) + "/" + playlistName)) playlistID = data.json()['playlistID'] spotifyURL = data.json()['spotifyURL'] - print(playlistID) cursor.execute("INSERT INTO rooms (roomid, spotify_id, playlist_name, spotify_URL) VALUES (?, ?, ?, ?)", (roomid, playlistID, playlistName, spotifyURL)) database.commit() @@ -71,14 +70,10 @@ def search(roomid): @app.route('/add/room//playlist//track/', methods=['GET']) def add_to_playlist(roomid, playlistID, trackid): - print(roomid) - print(playlistID) - print(trackid) if not os.getenv("n8n_webhook_add_tracks"): return render_template("add.html", response="No n8n webhook provided", comment="Please provide a n8n webhook in the .env file", type="error", roomid=roomid) try: data = requests.get(os.getenv("n8n_webhook_add_tracks") + "/" + playlistID + "/" + trackid) - print(data.json) if data.json()['status'] == 'success': return render_template("add.html", response="Track added to playlist successfully", comment="Enjoy the night \U0001f57a", type="success", roomid=roomid) diff --git a/templates/add.html b/templates/add.html index 90abaf0..d37ab62 100644 --- a/templates/add.html +++ b/templates/add.html @@ -2,7 +2,7 @@ - Fête de la musique + Make this playlist {{ bootstrap.load_css() }} diff --git a/templates/create.html b/templates/create.html index ab6e6a2..40998c3 100644 --- a/templates/create.html +++ b/templates/create.html @@ -2,7 +2,7 @@ - Fête de la musique + Make this playlist {{ bootstrap.load_css() }} diff --git a/templates/index.html b/templates/index.html index 8f5ecf6..cfb53b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ - Fête de la musique + Make this playlist {{ bootstrap.load_css() }} diff --git a/templates/search.html b/templates/search.html index c9f8a33..53336f5 100644 --- a/templates/search.html +++ b/templates/search.html @@ -2,7 +2,7 @@ - Fête de la musique + Make this playlist - Search {{ bootstrap.load_css() }}