From ea8d2511420b24884d7909bc46b7294dbe779d2a Mon Sep 17 00:00:00 2001 From: mihalin Date: Sun, 26 Sep 2021 20:37:51 +0300 Subject: [PATCH] flake8 fix, server back --- main.py | 2 +- olgram/commands/bots.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2a4a254..311a625 100644 --- a/main.py +++ b/main.py @@ -47,7 +47,7 @@ def main(): loop.run_until_complete(initialization()) loop.create_task(dp.start_polling()) - # loop.create_task(server_main().start()) + loop.create_task(server_main().start()) loop.run_forever() diff --git a/olgram/commands/bots.py b/olgram/commands/bots.py index 5a3f19d..9f2f5c6 100644 --- a/olgram/commands/bots.py +++ b/olgram/commands/bots.py @@ -99,7 +99,8 @@ async def bot_added(message: types.Message, state: FSMContext): return await on_unknown_error() user, _ = await User.get_or_create(telegram_id=message.from_user.id) - bot = Bot(token=Bot.encrypted_token(token), owner=user, name=test_bot_info.username, super_chat_id=message.from_user.id) + bot = Bot(token=Bot.encrypted_token(token), owner=user, name=test_bot_info.username, + super_chat_id=message.from_user.id) try: await bot.save() except IntegrityError: