WIP: Moderation type registry #26
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue