From 265b2b6f9a35dcef14cee19604909002b6539335 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 12 Jul 2024 11:28:41 +0300 Subject: [PATCH] new --- .../__pycache__/consumers.cpython-310.pyc | Bin 7274 -> 6889 bytes osinaweb/support/consumers.py | 16 ---------------- 2 files changed, 16 deletions(-) diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 505f2cd7f65bf16a9685b0e95802797be1db1aa7..1cf706712409d62650acaf0e78a854ec924cc29a 100644 GIT binary patch delta 597 zcmZ{hzfTik7{~9qmgY@cT0G$HC`U|Gz=MH8QeaUA7Y3*%iUVQ=TYj`a3vUZ75C+2F zKtl4wgvH6x1-OBPMgIhiF%l;Yi3zOk#^-y3gNc_spZnhT{XX~J``q>DRW4O)ZjKvr zWv>nwF1t@s4~ZtYK$FqOhHnLDbQ~u?SV|6E<6tF*8wdFyS(B0A;e)-uiVm)0RV4^-O) z(IWq7zZ+YU9zDfrdyhUa+fOsoFrEQ3KtGTL>O5$wxArnH>G(&zbfA&tV61 dNN-5~D|#Bh2Jd&irUL)AJs$D0kvnZYe*g^!c)I`q delta 892 zcmZ{iO-vI(6vy|?w#(8krSuD0ON<1?N)V!GdO>46z=e+>a;OTe-6C6H3$u$TDRQWZ zCk)Ap7ej&^Jqc;z(L|44;Al8{5jh!6y!r875l=eF{PzFmeayU_`F!ax9Vj(4_!Jsn z57wvlJ9YxY0An}-gN7M;tYrLV_=b{-RA0fi4_;QYMz?_R>Uy9Xa1T7I9!k7U(@7It zr3gh)R*I?#rdSgzV5($!%3yjn)D_`+$I#}Og z4B%EQj6K2n2yYYuAv_>J`{DCyp#Q?F!H)jCAkXnoNoX`{J+_l@6%#73!d-$ZUZ|!h z3scs!>{-h$ba7YC`Du4)P4G8y^-kE+YGM z*uzkCJbIfK?l2}8os1rQo=CRHEa|s2zwyqs4Ru44S=yu(CUG~Kh8*g#(^{U~(&Rhw zaryz91ssW82~3epi6Qxbm+s+4EUA5AIbD4dlW@{vT|3bXt2u_vsKu9XxMjX|p6y!T z0xQWlYJwEzjA*C-=w%GB=OLqyQG165t49on;bPXG#B@9k-*Gg)koafs9JtDVJSdk) Xe`5PSV+lQpXIl11ZYKKG-pHBX;UUJ7 diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index b4c4f1b1..7e1515c5 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -170,22 +170,6 @@ class TicketRoomConsumer(WebsocketConsumer): def modify_online_user(self): connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) - event = { - 'type': 'user_connection_handler', - 'user': self.user, - 'connections': connections, - } - async_to_sync(self.channel_layer.group_send)( - self.ticket_number, event - ) - - def user_connection_handler(self, event): - - html = render_to_string("details_templates/partials/ticket-online-users.html") - self.send(text_data=json.dumps({ - 'event_type': 'user_status', - 'html': html - }))