diff --git a/main.py b/main.py index 6c7dc5b..d4535e6 100644 --- a/main.py +++ b/main.py @@ -67,7 +67,9 @@ async def main() -> None: # Start polling the bot try: bot_info = await bot.get_me() - logger.info("HolderBot [@%s] is starting to poll messages...", bot_info.username) + logger.info( + "HolderBot [@%s] is starting to poll messages...", bot_info.username + ) await dp.start_polling(bot) except (ConnectionError, TimeoutError) as conn_err: logger.error("A connection error occurred while polling: %s", conn_err) diff --git a/routers/user.py b/routers/user.py index 9438361..6aaf497 100644 --- a/routers/user.py +++ b/routers/user.py @@ -158,7 +158,7 @@ async def user_create_owner_select( """ await state.update_data(admin=callback_data.username) inbounds = await panel.get_inbounds() - tags = [item['tag'] for sublist in inbounds.values() for item in sublist] + tags = [item["tag"] for sublist in inbounds.values() for item in sublist] await state.update_data(inbounds=inbounds) await state.update_data(selected_inbounds=tags) return await callback.message.edit_text(