diff --git a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc index d812f2fa..24e71acc 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 779b7bb0..ea58b3d0 100644 --- a/osinaweb/osinacore/consumers.py +++ b/osinaweb/osinacore/consumers.py @@ -48,11 +48,11 @@ class OnlineUserConsumer(WebsocketConsumer): online_users_ids = [connection.user.id for connection in online_connections] customer_connections = [] staff_connections = [] - for connection in sorted_connections: - if hasattr(connection.user, 'customerprofile'): - customer_connections.append(connection) - elif hasattr(connection.user, 'staffprofile'): - staff_connections.append(connection) + for connectiontyyt in sorted_connections: + if hasattr(connectiontyyt.user, 'customerprofile'): + customer_connections.append(connectiontyyt) + elif hasattr(connectiontyyt.user, 'staffprofile'): + staff_connections.append(connectiontyyt) event = { 'type': 'online_user_connection_handler', 'staff_connections': staff_connections,