mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
test
This commit is contained in:
parent
18c81d6b61
commit
92d0968276
@ -56,7 +56,7 @@ class CustomRequestHandler(WebhookRequestHandler):
|
|||||||
key = self.request.url.path[1:]
|
key = self.request.url.path[1:]
|
||||||
|
|
||||||
# TODO: async
|
# 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:
|
if not bot:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user