modified: app.py

modified:   locales/de-DE.json
	modified:   locales/en-EN.json
	modified:   templates/gamemodes.html
	new file:   templates/playerselect.html
This commit is contained in:
SimolZimol
2025-06-06 00:04:09 +02:00
parent 827247e1ec
commit 2d7ff9afc9
5 changed files with 99 additions and 3 deletions

10
app.py
View File

@@ -342,5 +342,15 @@ def get_user_from_cookie():
return None
return None
@app.route("/playerselect/<playlist_id>")
def playerselect(playlist_id):
game_mode = request.args.get('mode', 'artist')
return render_template(
"playerselect.html",
playlist_id=playlist_id,
game_mode=game_mode,
translations=get_translations()
)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)