Skip to content

Commit

Permalink
Refactored code running the command: poetry run black uqcsbot
Browse files Browse the repository at this point in the history
  • Loading branch information
fattyhope committed Dec 15, 2023
1 parent 8a4d1dc commit d634509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uqcsbot/minecraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d634509

Please sign in to comment.