aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-07-31 02:09:35 -0400
committerGravatar Ionite <[email protected]>2022-08-16 16:38:26 -0400
commit8d788a9fdc53a7af0730dfc925ea649fd5b810c4 (patch)
treecf750c5bae50f506a03bf997f77d60604aa9369f
parentUse `last_applied` to display duration (diff)
Added new expiry usage to apply
- Added new usage of `last_applied` time for duration calculation in `apply_infraction`
-rw-r--r--bot/exts/moderation/infraction/_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py
index c7f03b2e9..28aafec2a 100644
--- a/bot/exts/moderation/infraction/_scheduler.py
+++ b/bot/exts/moderation/infraction/_scheduler.py
@@ -137,7 +137,7 @@ class InfractionScheduler:
infr_type = infraction["type"]
icon = _utils.INFRACTION_ICONS[infr_type][0]
reason = infraction["reason"]
- expiry = time.format_with_duration(infraction["expires_at"])
+ expiry = time.format_with_duration(infraction["expires_at"], infraction["last_applied"])
id_ = infraction['id']
if user_reason is None: