From 36df06823a73a8251e0839c47a4c3d5ab47d2a86 Mon Sep 17 00:00:00 2001 From: Erfan Date: Wed, 6 Nov 2024 14:58:48 +0330 Subject: [PATCH] style: format text with ruff format --- main.py | 4 +++- routers/user.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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(