From fc7eae782189f1e204fbc340962ce19fd65e5bdb Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 12 Jul 2024 11:27:40 +0300 Subject: [PATCH] new --- .../__pycache__/consumers.cpython-310.pyc | Bin 7253 -> 7274 bytes osinaweb/support/consumers.py | 10 ++++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 4196a0789559cc5a8fc9629e3cb9273275eb0f87..505f2cd7f65bf16a9685b0e95802797be1db1aa7 100644 GIT binary patch delta 257 zcmca=@ydcXpO=@50SG?5n2>gBBX1NBjYRa+vTO##5U=3wJRwUYJ}b*28#kGPn3@#ut;fi|2BG m02z}3B&w7q9~76^>@HEp#Q1IUKB?u5&nKrzzhO2JQ3C(~)<}T> delta 253 zcmaE5an*u1pO=@50SL~#n2`2vBX1NBqvqrcp2LhQH|y}8W}bY9k+WV0C|$#t!YBzM znIsufnCCFnGSx6-F_bVaU`k<0Va;S*$e6;`%gD%(!Vt`$$?jJa4b)S_2_!U`5bPpD zpgn>%d~r!)NojFW5J+7pNF8&LI*9E7BK$#wCX|>wO;A9H2gqS#Vq;|c$HB_N z$oIcWYw|$>;ms!n7cw#)nVc;=hw;p24v{V<#!HhYi}f%bo~$6gn(@`-Gvc|7pEg@b Y%wS^tG5NC8a>kdFtEJyCn~A6a0JkGTRR910 diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index c4ee23fc..b4c4f1b1 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -180,18 +180,16 @@ class TicketRoomConsumer(WebsocketConsumer): ) def user_connection_handler(self, event): - context = { - 'connections': event['connections'], - 'user': event['user'] - } - + + html = render_to_string("details_templates/partials/ticket-online-users.html") self.send(text_data=json.dumps({ 'event_type': 'user_status', - + 'html': html })) + class NewTicketConsumer(WebsocketConsumer): def connect(self): self.user = self.scope['user']