diff options
author | 2022-08-18 21:12:13 -0400 | |
---|---|---|
committer | 2022-08-18 21:12:13 -0400 | |
commit | ea0f1af039e3fafea8456abd50d60de93ab8fca2 (patch) | |
tree | 42ecff41c07b0e5f0cf2fff710e171c1b2857232 | |
parent | fix: lint (again) (diff) |
fix: remove chance of empty string overriding database infraction reason
-rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |