mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
strip whitespace from participant name in enqueue endpoint
This commit is contained in:
parent
b7a79462dc
commit
349eff9a09
@ -37,7 +37,7 @@ def enqueue():
|
|||||||
if not helpers.is_valid_uuid(client_id):
|
if not helpers.is_valid_uuid(client_id):
|
||||||
print(request.data)
|
print(request.data)
|
||||||
abort(400)
|
abort(400)
|
||||||
name = request.json['name']
|
name = request.json['name'].strip()
|
||||||
song_id = request.json['id']
|
song_id = request.json['id']
|
||||||
if request.authorization:
|
if request.authorization:
|
||||||
entry_id = database.add_entry(name, song_id, client_id)
|
entry_id = database.add_entry(name, song_id, client_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user