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:
10
app.py
10
app.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user