Add foreign admin views

This commit is contained in:
Stephan Porada
2019-09-18 12:06:34 +02:00
parent daf6c15111
commit 5ad5bc0a2f
4 changed files with 47 additions and 22 deletions

View File

@ -24,6 +24,8 @@ def connect():
' will be used for further information exchange generated by a background
' task associated with the sid.
'''
logger = logging.getLogger(__name__)
logger.warning('[connect] Session id is: {}.'.format(request.sid))
socketio.start_background_task(background_task,
current_app._get_current_object(),
current_user.id,
@ -43,6 +45,7 @@ def connect_admin(selected_user_id):
'''
logger = logging.getLogger(__name__)
logger.warning('Admin emitted "connect_admin".')
logger.warning('[connect_admin] Session id is: {}.'.format(request.sid))
logger.warning('Selected user id is: {}'.format(selected_user_id))
socketio.start_background_task(background_task_foreign,
current_app._get_current_object(),