diff options
author | 2019-09-18 15:30:46 -0500 | |
---|---|---|
committer | 2019-09-18 15:30:46 -0500 | |
commit | cb2d892c37f68aa72b3078905d26030ea50368f2 (patch) | |
tree | f2c4f0d6ad12b1de1e996b85bfcd9d2490b595a7 | |
parent | Merge branches 'hemlock-infraction-date-humanization' and 'master' of https:/... (diff) |
Infraction Date Humanization
- Changed the if statement to use `is None` for code clarity.
Signed-off-by: Daniel Brown <[email protected]>
-rw-r--r-- | bot/cogs/moderation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index f16a13a3e..2c7253c7b 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -1261,7 +1261,7 @@ class Moderation(Scheduler, Cog): user_id = infraction_object["user"] hidden = infraction_object["hidden"] created = datetime.fromisoformat(infraction_object["inserted_at"].strftime("%Y-%m-%d %H:%M")) - if not infraction_object["expires_at"]: + if infraction_object["expires_at"] is None: expires = "*Permanent*" else: expires = datetime.fromisoformat(infraction_object["expires_at"].strftime("%Y-%m-%d %H:%M")) |