From 8eb25d524b46bb6f3a0d2c342dca9e231460a0b7 Mon Sep 17 00:00:00 2001 From: emile Date: Tue, 1 Oct 2024 17:01:10 +0300 Subject: [PATCH] new --- osinaweb/osichat/consumers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osinaweb/osichat/consumers.py b/osinaweb/osichat/consumers.py index 6991c2de..dc86d6be 100644 --- a/osinaweb/osichat/consumers.py +++ b/osinaweb/osichat/consumers.py @@ -4,7 +4,6 @@ import json from django.template.loader import render_to_string from asgiref.sync import async_to_sync from django.shortcuts import get_object_or_404 -import requests from django.forms.models import model_to_dict from django.core.serializers.json import DjangoJSONEncoder from django.db.models import Case, When, F, Max, DateTimeField @@ -96,7 +95,7 @@ class Osichat(WebsocketConsumer): event = { 'type': 'get_dms_handler', } - self.get_chats_handler(event) + self.get_dms_handler(event) if event_type == 'get_visitors':