mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-18 18:41: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):
|
||||
print(request.data)
|
||||
abort(400)
|
||||
name = request.json['name']
|
||||
name = request.json['name'].strip()
|
||||
song_id = request.json['id']
|
||||
if request.authorization:
|
||||
entry_id = database.add_entry(name, song_id, client_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user