emile 10 months ago
parent 0cdb8635df
commit 20f8027d01

@ -49,10 +49,8 @@ class OnlineUserConsumer(WebsocketConsumer):
customer_connections = [] customer_connections = []
staff_connections = [] staff_connections = []
for connection in sorted_connections: for connection in sorted_connections:
if CustomerProfile.objects.filter(user=connection.user): print('hi')
customer_connections.append(connection)
else:
staff_connections.append(connection)
event = { event = {
'type': 'online_user_connection_handler', 'type': 'online_user_connection_handler',
'staff_connections': staff_connections, 'staff_connections': staff_connections,

Loading…
Cancel
Save