WIP: Moderation type registry #26

Closed
cswimr wants to merge 146 commits from aurora-3rd-party into main
Showing only changes of commit ea65816c32 - Show all commits

View file

@ -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: