WIP: Moderation type registry #26

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

View file

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