From ea65816c3270ea782afc72c9c4a11b9da978c024 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 14:51:22 -0400 Subject: [PATCH] fix(aurora): fixed an incorrect if statement --- aurora/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/models.py b/aurora/models.py index c4013cb..9ac8b90 100644 --- a/aurora/models.py +++ b/aurora/models.py @@ -38,7 +38,7 @@ class Moderation(BaseModel): result = cursor.fetchone() if result: - if result[7] != "NULL": + if result[7] is not None: hours, minutes, seconds = map(int, result[7].split(':')) duration = timedelta(hours=hours, minutes=minutes, seconds=seconds) else: