diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index d38fb827..d2079f78 100644 Binary files a/osinaweb/support/__pycache__/consumers.cpython-310.pyc and b/osinaweb/support/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index fdc8d0a6..94ee4a16 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -170,17 +170,10 @@ class TicketRoomConsumer(WebsocketConsumer): def modify_online_user(self): connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) - my_connections = [] - for connection in connections: - connection_data = { - 'first_name': connection.user.first_name, - 'last_name': connection.user.last_name, - } - my_connections.append(connection_data) event = { 'type': 'user_connection_handler', 'user': self.user, - 'connections': my_connections, + 'connections': list(connections.values()), } async_to_sync(self.channel_layer.group_send)( self.ticket_number, event @@ -237,7 +230,6 @@ class NewTicketConsumer(WebsocketConsumer): })) - class NewTicketUpdateConsumer(WebsocketConsumer): def connect(self): self.user = self.scope['user']