From d6345097c17e7c462e16635f23ef15bcca442e92 Mon Sep 17 00:00:00 2001 From: fattyhope Date: Fri, 15 Dec 2023 16:20:47 +1000 Subject: [PATCH] Refactored code running the command: poetry run black uqcsbot --- uqcsbot/minecraft.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uqcsbot/minecraft.py b/uqcsbot/minecraft.py index 3c26165..7feb2bd 100644 --- a/uqcsbot/minecraft.py +++ b/uqcsbot/minecraft.py @@ -123,7 +123,9 @@ async def mcunwhitelist(self, interaction: discord.Interaction, username: str): # If the responses indicate successful removal, remove from the database item if "Removed" in response_remove[0]: - db_session.query(MCWhitelist).filter(MCWhitelist.mc_username == username).delete() + db_session.query(MCWhitelist).filter( + MCWhitelist.mc_username == username + ).delete() db_session.commit() await self.bot.admin_alert(