|
|
@ -48,9 +48,8 @@ class OnlineUserConsumer(WebsocketConsumer):
|
|
|
|
online_users_ids = [connection.user.id for connection in online_connections]
|
|
|
|
online_users_ids = [connection.user.id for connection in online_connections]
|
|
|
|
customer_connections = []
|
|
|
|
customer_connections = []
|
|
|
|
staff_connections = []
|
|
|
|
staff_connections = []
|
|
|
|
customer_connections = [connection for connection in sorted_connections if hasattr(connection.user, 'customerprofile')]
|
|
|
|
for connection in sorted_connections:
|
|
|
|
staff_connections = [connection for connection in sorted_connections if hasattr(connection.user, 'staffprofile')]
|
|
|
|
print(connection)
|
|
|
|
|
|
|
|
|
|
|
|
event = {
|
|
|
|
event = {
|
|
|
|
'type': 'online_user_connection_handler',
|
|
|
|
'type': 'online_user_connection_handler',
|
|
|
|
'staff_connections': staff_connections,
|
|
|
|
'staff_connections': staff_connections,
|
|
|
|