update
This commit is contained in:
parent
555cbdaaa9
commit
423723c673
|
@ -30,6 +30,7 @@ def publish_check():
|
||||||
# get user
|
# get user
|
||||||
try:
|
try:
|
||||||
stream_key = request.form.get('stream_key')
|
stream_key = request.form.get('stream_key')
|
||||||
|
print(stream_key)
|
||||||
username = request.form.get('name')
|
username = request.form.get('name')
|
||||||
stream_user = user.search_user(username)[0]
|
stream_user = user.search_user(username)[0]
|
||||||
if username != stream_user['username']:
|
if username != stream_user['username']:
|
||||||
|
|
|
@ -26,7 +26,7 @@ def create():
|
||||||
logging.info('User %s created with stream key %s',
|
logging.info('User %s created with stream key %s',
|
||||||
new_user.username, new_user.stream_key)
|
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)
|
return make_response(jsonify(res), 200)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue