Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurdok committed Oct 17, 2024
1 parent 940913a commit 83c151b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/spanreed/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ async def _unregister_from_an_existing_plugin(
plugin = plugins[choice]
self._logger.info(f"Unregistering user {user} from plugin {plugin}")
await plugin.unregister_user(user)

async def _reconfigure_existing_plugin(
self, bot: TelegramBotApi, user: User
) -> None:
plugins = [plugin for plugin in await Plugin.get_plugins_for_user(user)
if plugin.has_user_config()]
plugins = [
plugin
for plugin in await Plugin.get_plugins_for_user(user)
if plugin.has_user_config()
]

if not plugins:
await bot.send_message("There are no plugins to reconfigure.")
Expand All @@ -124,4 +127,3 @@ async def _reconfigure_existing_plugin(
plugin = plugins[choice]
self._logger.info(f"Reconfiguring user {user} for plugin {plugin}")
await plugin.ask_for_user_config(user)

0 comments on commit 83c151b

Please sign in to comment.