From e64572fcfa91b7785b1ac37d5fd54b9e5f479401 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 18 Aug 2022 15:15:36 -0400 Subject: fix: lint (again) --- bot/exts/moderation/infraction/_scheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 864aff9b2..4d06c6b16 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -443,14 +443,14 @@ class InfractionScheduler: try: # Mark infraction as inactive in the database. log.trace(f"Marking infraction #{id_} as inactive in the database.") - + data = {"active": False, "reason": ""} - + if pardon_reason is not None: # Append pardon reason to infraction in database. if (punish_reason := infraction["reason"]) is not None: data["reason"] = punish_reason + " | " - + data["reason"] += f"Pardoned: {pardon_reason}" await self.bot.api_client.patch( -- cgit v1.2.3