mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Fix Type errors
This commit is contained in:
parent
d5a21b82de
commit
cbf7aad8ac
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user