WIP: Refactor Aurora (3.0.0) #29
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):
|
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
|
||||||
hours, minutes, seconds = map(int, data["duration"].split(':'))
|
hours, minutes, seconds = map(int, data["duration"].split(':'))
|
||||||
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
|
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"]
|
duration = data["duration"]
|
||||||
else:
|
else:
|
||||||
duration = None
|
duration = None
|
||||||
|
|
Loading…
Reference in a new issue