From 92d0968276fdbb4897876953538c5c3343e3f22b Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 10 Sep 2021 00:19:19 +0300 Subject: [PATCH] test --- server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index 95adef5..6e0befc 100644 --- a/server/server.py +++ b/server/server.py @@ -56,7 +56,7 @@ class CustomRequestHandler(WebhookRequestHandler): key = self.request.url.path[1:] # TODO: async - bot = asyncio.get_event_loop().run_until_complete(Bot.filter(code=key).first()) + bot = asyncio.new_event_loop().run_until_complete(Bot.filter(code=key).first()) if not bot: return None