aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/infraction/_scheduler.py6
1 files 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(