From cf6ba4df6d1ca0d0dcf2c34f876d2635ff3a6147 Mon Sep 17 00:00:00 2001 From: mihalin <stopa3.10.1996@mail.ru> Date: Thu, 9 Sep 2021 23:44:11 +0300 Subject: [PATCH] fix --- server/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index 771c605..9d54203 100644 --- a/server/server.py +++ b/server/server.py @@ -53,7 +53,8 @@ class CustomRequestHandler(WebhookRequestHandler): """ key = self.request.url.path[1:] - bot = await Bot.filter(code=key).first() + # TODO: async + bot = asyncio.get_event_loop().run_until_complete(Bot.filter(code=key).first()) if not bot: return None