diff --git a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc index bed733c9..d812f2fa 100644 Binary files a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/osinacore/consumers.py b/osinaweb/osinacore/consumers.py index 1ea3ffde..779b7bb0 100644 --- a/osinaweb/osinacore/consumers.py +++ b/osinaweb/osinacore/consumers.py @@ -49,7 +49,10 @@ class OnlineUserConsumer(WebsocketConsumer): customer_connections = [] staff_connections = [] for connection in sorted_connections: - print(connection) + if hasattr(connection.user, 'customerprofile'): + customer_connections.append(connection) + elif hasattr(connection.user, 'staffprofile'): + staff_connections.append(connection) event = { 'type': 'online_user_connection_handler', 'staff_connections': staff_connections,