diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 63e3eb7d..aa6a699c 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 601e9074..11cb774b 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -171,7 +171,7 @@ class TicketRoomConsumer(WebsocketConsumer): def modify_online_user(self): connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) event = { - 'type': 'user_connecgvvytion_gggggghandler', + 'type': 'user_connection_handler', 'user': self.user, 'connections': connections, } @@ -179,16 +179,12 @@ class TicketRoomConsumer(WebsocketConsumer): self.ticket_number, event ) - def user_connecgvvytion_gggggghandler(self, event): + def user_connection_handler(self, event): context = { 'connections': event['connections'], 'user': event['user'] } - html = render_to_string("details_templates/partials/ticket-online-users.html", context=context) - self.send(text_data=json.dumps({ - 'event_type': 'user_status', - 'html': html - })) +