diff options
author | 2019-09-18 16:01:03 -0500 | |
---|---|---|
committer | 2019-09-18 16:01:03 -0500 | |
commit | 5640a23b4b2af23a4a767d506105730ca06f5d0b (patch) | |
tree | 9694f5b7b8ff9bf74f749f4cb35a2907a3f8be6b | |
parent | Merge branch 'master' into hemlock-infraction-date-humanization (diff) |
Infraction Date Humanization
- Corrected an error that would have made the code bug out. Moved a closing parentheses to the correct spot.
Signed-off-by: Daniel Brown <[email protected]>
-rw-r--r-- | bot/cogs/moderation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index 2c7253c7b..2d6c40a46 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -1260,11 +1260,11 @@ class Moderation(Scheduler, Cog): active = infraction_object["active"] user_id = infraction_object["user"] hidden = infraction_object["hidden"] - created = datetime.fromisoformat(infraction_object["inserted_at"].strftime("%Y-%m-%d %H:%M")) + created = datetime.fromisoformat(infraction_object["inserted_at"]).strftime("%Y-%m-%d %H:%M") if infraction_object["expires_at"] is None: expires = "*Permanent*" else: - expires = datetime.fromisoformat(infraction_object["expires_at"].strftime("%Y-%m-%d %H:%M")) + expires = datetime.fromisoformat(infraction_object["expires_at"]).strftime("%Y-%m-%d %H:%M") lines = textwrap.dedent(f""" {"**===============**" if active else "==============="} |