diff --git a/osinaweb/osinacore/__pycache__/routing.cpython-310.pyc b/osinaweb/osinacore/__pycache__/routing.cpython-310.pyc index 01062d4b..545a68d0 100644 Binary files a/osinaweb/osinacore/__pycache__/routing.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/routing.cpython-310.pyc differ diff --git a/osinaweb/osinacore/routing.py b/osinaweb/osinacore/routing.py index efaa935c..5ea96af0 100644 --- a/osinaweb/osinacore/routing.py +++ b/osinaweb/osinacore/routing.py @@ -2,7 +2,7 @@ from django.urls import path from .consumers import * websocket_urlpatterns = [ - path("ws/online-users/", OnlineUserConsumer.as_asgi()), + path("ws/new-statuses/", NewStatusConsumer.as_asgi()), path("ws/update-statuses-time/", UpdateStatusesTimeConsumer.as_asgi()), diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index e173e91a..79eb2c70 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 84a6b26b..aea2c1cc 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -181,8 +181,8 @@ class TicketRoomConsumer(WebsocketConsumer): def user_connection_handler(self, event): context = { - 'connections': event['c--onnections'], - 'user': event['--user'] + '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({