This commit is contained in:
Carneiro 2023-10-04 23:14:30 -03:00
parent 555cbdaaa9
commit 423723c673
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ def publish_check():
# get user
try:
stream_key = request.form.get('stream_key')
print(stream_key)
username = request.form.get('name')
stream_user = user.search_user(username)[0]
if username != stream_user['username']:

View File

@ -26,7 +26,7 @@ def create():
logging.info('User %s created with stream key %s',
new_user.username, new_user.stream_key)
res = {'username': new_user.username, 'stream_key': str(new_user.stream_key)}
res = {'username': new_user.username, 'stream_key': new_user.stream_key.decode('utf-8')}
return make_response(jsonify(res), 200)