diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index bab54f57..fdf06ea1 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc index 69dfa59a..0bf2179e 100644 Binary files a/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index f664b3e4..d38fb827 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 476b39ba..fdc8d0a6 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -170,17 +170,17 @@ class TicketRoomConsumer(WebsocketConsumer): def modify_online_user(self): connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) - connections_serial = [] + my_connections = [] for connection in connections: - connection_data = { + connection_data = { 'first_name': connection.user.first_name, 'last_name': connection.user.last_name, - } - connections_serial.append(connection_data) + } + my_connections.append(connection_data) event = { 'type': 'user_connection_handler', 'user': self.user, - 'connections': connections_serial, + 'connections': my_connections, } async_to_sync(self.channel_layer.group_send)( self.ticket_number, event