WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic 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