diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 8de72d69..cf449af5 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc index 0c3e830c..70ed9e78 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 49ec3ac1..00af9172 100644 --- a/osinaweb/osinacore/consumers.py +++ b/osinaweb/osinacore/consumers.py @@ -49,7 +49,9 @@ class OnlineUserConsumer(WebsocketConsumer): customer_connections = [] staff_connections = [] for connection in sorted_connections: - if hasattr(connection.user, 'staffprofile'): + if CustomerProfile.objects.filter(user=connection.user): + customer_connections.append(connection) + else: staff_connections.append(connection) event = { 'type': 'online_user_connection_handler',