emile 10 months ago
parent cb00ba3e1e
commit 361702ce8c

Binary file not shown.

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

Loading…
Cancel
Save