emile 10 months ago
parent 0258d3486d
commit dc57d1d439

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

Loading…
Cancel
Save