emile 10 months ago
parent 361702ce8c
commit 35d88ad03d

@ -49,7 +49,10 @@ class OnlineUserConsumer(WebsocketConsumer):
customer_connections = []
staff_connections = []
for connection in sorted_connections:
print(connection)
if hasattr(connection.user, 'customerprofile'):
customer_connections.append(connection)
elif hasattr(connection.user, 'staffprofile'):
staff_connections.append(connection)
event = {
'type': 'online_user_connection_handler',
'staff_connections': staff_connections,

Loading…
Cancel
Save