Skip to content

Commit

Permalink
fix: Default value to section id
Browse files Browse the repository at this point in the history
  • Loading branch information
lefcha committed Aug 7, 2024
1 parent 8afab84 commit 4404db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todoist_api_python/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def from_dict(cls, obj: dict[str, Any]):
parent_id=obj.get("parent_id"),
priority=obj["priority"],
project_id=obj["project_id"],
section_id=obj["section_id"],
section_id=obj.get("section_id"),
url=obj["url"],
duration=duration,
)
Expand Down

0 comments on commit 4404db1

Please sign in to comment.