fix(aurora): fixed an incorrect if statement
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 32s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 46s

This commit is contained in:
Seaswimmer 2024-05-04 14:51:22 -04:00
parent afed1d6a37
commit ea65816c32
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -38,7 +38,7 @@ class Moderation(BaseModel):
result = cursor.fetchone() result = cursor.fetchone()
if result: if result:
if result[7] != "NULL": if result[7] is not None:
hours, minutes, seconds = map(int, result[7].split(':')) hours, minutes, seconds = map(int, result[7].split(':'))
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds) duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
else: else: