diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 65eb0dea..64d8868b 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 71403173..7adb07ee 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -168,10 +168,10 @@ class TicketRoomConsumer(WebsocketConsumer): })) def modify_online_user(self): - + connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) event = { 'type': 'user_connection_handler', - + 'connections': connections, } async_to_sync(self.channel_layer.group_send)( self.ticket_number, event @@ -179,8 +179,7 @@ class TicketRoomConsumer(WebsocketConsumer): def user_connection_handler(self, event): context = { - 'type': event['type'], - + 'connections': event['connections'], } html = render_to_string("details_templates/partials/ticket-online-users.html", context=context) self.send(text_data=json.dumps({