From ea0f1af039e3fafea8456abd50d60de93ab8fca2 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 18 Aug 2022 21:12:13 -0400 Subject: fix: remove chance of empty string overriding database infraction reason --- bot/exts/moderation/infraction/_scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 4d06c6b16..bc944aa8e 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -444,7 +444,7 @@ class InfractionScheduler: # Mark infraction as inactive in the database. log.trace(f"Marking infraction #{id_} as inactive in the database.") - data = {"active": False, "reason": ""} + data = {"active": False} if pardon_reason is not None: # Append pardon reason to infraction in database. -- cgit v1.2.3