diff --git a/backend/app.py b/backend/app.py index 370c2b6..7ec377d 100644 --- a/backend/app.py +++ b/backend/app.py @@ -52,8 +52,8 @@ def enqueue(): abort(400) name = request.json['name'] song_id = request.json['id'] - if database.check_queue_length() < app.config['MAX_QUEUE']: - if database.check_entry_quota(client_id) < app.config['ENTRY_QUOTA']: + if database.check_queue_length() < int(app.config['MAX_QUEUE']): + if database.check_entry_quota(client_id) < int(app.config['ENTRY_QUOTA']): database.add_entry(name, song_id, client_id) return Response('{"status":"OK"}', mimetype='text/json') else: diff --git a/backend/wsgi.py b/backend/main.py similarity index 100% rename from backend/wsgi.py rename to backend/main.py diff --git a/backend/templates/base.html b/backend/templates/base.html index 8b598ea..754a1d0 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -12,7 +12,7 @@