Compare commits
No commits in common. "c08573b4b3c8e47247bf61071bd503240f02d52e" and "f057ed63743b23337e69e9ddaa9a4b8ec3cdc3f0" have entirely different histories.
c08573b4b3
...
f057ed6374
@ -2,5 +2,4 @@ client_id=
|
|||||||
client_secret=
|
client_secret=
|
||||||
n8n_webhook_add_tracks=
|
n8n_webhook_add_tracks=
|
||||||
n8n_webhook_create_playlist=
|
n8n_webhook_create_playlist=
|
||||||
hostname=
|
|
||||||
environment=production
|
environment=production
|
@ -25,7 +25,6 @@ docker run -d \
|
|||||||
-e n8n_webhook_create_playlist=N8N_WEBHOOK_URL \
|
-e n8n_webhook_create_playlist=N8N_WEBHOOK_URL \
|
||||||
-e n8n_webhook_add_tracks=N8N_WEBHOOK_URL \
|
-e n8n_webhook_add_tracks=N8N_WEBHOOK_URL \
|
||||||
-e environment=production \
|
-e environment=production \
|
||||||
-e hostname=https://example.com
|
|
||||||
gitea.louisgallet.fr/lgallet/makethisplaylist:latest
|
gitea.louisgallet.fr/lgallet/makethisplaylist:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2
main.py
2
main.py
@ -44,7 +44,7 @@ def create_playlist():
|
|||||||
cursor.execute("INSERT INTO rooms (roomid, spotify_id, playlist_name, spotify_URL) VALUES (?, ?, ?, ?)",
|
cursor.execute("INSERT INTO rooms (roomid, spotify_id, playlist_name, spotify_URL) VALUES (?, ?, ?, ?)",
|
||||||
(roomid, playlistID, playlistName, spotifyURL))
|
(roomid, playlistID, playlistName, spotifyURL))
|
||||||
database.commit()
|
database.commit()
|
||||||
qrcode = generateQRCode(os.getenv("hostname") + "/search/" + str(roomid))
|
qrcode = generateQRCode("http://localhost:3000/search/" + str(roomid))
|
||||||
return render_template("create.html", response="Playlist created successfully",
|
return render_template("create.html", response="Playlist created successfully",
|
||||||
comment="Enjoy the night \U0001f57a (and share this QRCode with your friends)",
|
comment="Enjoy the night \U0001f57a (and share this QRCode with your friends)",
|
||||||
image=qrcode, type="success", roomid=roomid)
|
image=qrcode, type="success", roomid=roomid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user