style: 💄 Update title for all pages

This commit is contained in:
Louis Gallet 2024-07-01 17:23:57 +02:00
parent 0afeb8d2b8
commit 2ae758c73e
Signed by: lgallet
GPG Key ID: 84D3DF1528A84511
5 changed files with 4 additions and 9 deletions

View File

@ -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/<string:roomid>/playlist/<string:playlistID>/track/<string:trackid>', 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)

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fête de la musique</title>
<title>Make this playlist</title>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
{{ bootstrap.load_css() }}
</head>

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fête de la musique</title>
<title>Make this playlist</title>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
{{ bootstrap.load_css() }}
</head>

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fête de la musique</title>
<title>Make this playlist</title>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
{{ bootstrap.load_css() }}
</head>

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fête de la musique</title>
<title>Make this playlist - Search</title>
{{ bootstrap.load_css() }}
</head>
<body>