diff --git a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc index ad1ef080..4fcd6031 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 53b3813a..67f53c27 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: - staff_connections.append(connection) + if hasattr(connection.user, 'customerprofile'): + print('hi') + elif hasattr(connection.user, 'staffprofile'): + print('bye') event = { 'type': 'online_user_connection_handler', 'staff_connections': staff_connections,