Don't close modal on failure, redirect on success

This commit is contained in:
2019-05-22 03:17:32 +02:00
parent ab1db95d06
commit 1fc2511cbf
3 changed files with 9 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ def enqueue():
name = request.json['name']
song_id = request.json['id']
database.add_entry(name,song_id)
return "OK"
return Response('{"status":"OK"}', mimetype='text/json')
@app.route("/list")
def songlist():