Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
force test rebuild
  • Loading branch information
amleczko authored May 7, 2024
1 parent 8d67f1c commit 45b49b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions todoist_api_python/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def from_dict(cls, obj):
due = Due.from_dict(obj["due"])

if obj.get("duration"):
# only get duration when it exists
duration = Duration.from_dict(obj["duration"])

return cls(
Expand Down

0 comments on commit 45b49b3

Please sign in to comment.