diff options
| author | 2022-07-31 02:09:35 -0400 | |
|---|---|---|
| committer | 2022-07-31 02:09:35 -0400 | |
| commit | b115d42195841e69e38c601f40a6a49826e7eac6 (patch) | |
| tree | 7a446e937100ec73e455f6a78ec2786990e750e2 | |
| parent | Use `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.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 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: |