From b7b6dc2f2e68cabaa871f1d160ab0e98c9da4e8d Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 6 May 2024 14:44:06 -0400 Subject: [PATCH] fix(aurora): don't convert end_timestamp to an integer --- aurora/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aurora/models.py b/aurora/models.py index 57c8a80..4792f4a 100644 --- a/aurora/models.py +++ b/aurora/models.py @@ -174,14 +174,13 @@ class Moderation(AuroraGuildModel): timestamp = datetime.fromtimestamp(timestamp) if duration != "NULL" and duration is not None: - end_timedelta = timestamp + duration - end_timestamp = int(end_timedelta.timestamp()) + end_timestamp = timestamp + duration else: duration = None end_timestamp = None if not expired: - if timestamp.timestamp() > end_timestamp: + if timestamp > end_timestamp: expired = True else: expired = False