WIP: Moderation type registry #26
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class Change(AuroraBaseModel):
|
|||
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
|
||||
hours, minutes, seconds = map(int, data["duration"].split(':'))
|
||||
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
|
||||
elif duration in data and isinstance(data["duration"], timedelta):
|
||||
elif "duration" in data and isinstance(data["duration"], timedelta):
|
||||
duration = data["duration"]
|
||||
else:
|
||||
duration = None
|
||||
|
|
Loading…
Reference in a new issue