From 0a7315949f6ec44dd6982a71ba8c52447036b2e5 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 12 Jul 2024 10:43:08 +0300 Subject: [PATCH] new --- .../__pycache__/consumers.cpython-310.pyc | Bin 7338 -> 7326 bytes osinaweb/support/consumers.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 1f03a3d3c4f2d8e183a4438f5fd72c3536868637..65377bf659401dba01c7753b98587d3da5e27066 100644 GIT binary patch delta 166 zcmZ2wInRp@sg^N?8OUQvVUc90VN7A2!(7W$!U_~&%VKY41kxNeOwCM;3@Hr344Q0{ zRRq*oi#UPiO!gKqU=*2LBjBmX!N|nO_Lqy5jgjMjm1;<4a&~G-P=0={bADcNX>Mwf K-sYDA2e|=N7$}MW delta 153 zcmbPdxyq6^pO=@50SMIYO-M`F$g9l4BATBazuA!GDx*l0P;P!oW?E%@eqK&yUTS=4 zaca?KZnl%03Kl>eB@9`NSxhwySW*Ev70xHLDlNDpN3U4et#0KVER A4FCWD diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index 0cbf1222..3c9155cb 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -37,7 +37,7 @@ class TicketRoomConsumer(WebsocketConsumer): self.ticket_number, self.channel_name ) self.accept() - self.ok_modify_online_user() + self.modify_online_user() def disconnect(self, close_code): @@ -168,11 +168,11 @@ class TicketRoomConsumer(WebsocketConsumer): 'reaction': new_reaction.reaction if new_reaction else None })) - def ok_modify_online_user(self): + def modify_online_user(self): connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) event = { 'type': 'user_connection_handler', - 'user': self.user, + 'user': self.scope['user'], 'connections': connections, } async_to_sync(self.channel_layer.group_send)(