Skip to content

Commit

Permalink
style: format text with ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab committed Nov 6, 2024
1 parent 89016a0 commit 36df068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion routers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 36df068

Please sign in to comment.