From d1cd69eb2a334fa78be19a6b310457c1da795c1d Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 8 Apr 2024 12:42:45 +0300 Subject: [PATCH] async-fig --- services/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/search.py b/services/search.py index 9e5333ac..1dd765f2 100644 --- a/services/search.py +++ b/services/search.py @@ -135,7 +135,7 @@ class SearchService: async def perform_index(self, shout): if self.client: - await self.client.index(index=self.index_name, id=str(shout.id), body=shout.dict()) + self.client.index(index=self.index_name, id=str(shout.id), body=shout.dict()) async def search(self, text, limit, offset): logger.debug(f' Ищем: {text}')