From 45b49b30701b304f74aa9007c500160d6c244303 Mon Sep 17 00:00:00 2001 From: Andrew Mleczko Date: Tue, 7 May 2024 15:25:29 +0200 Subject: [PATCH] Update models.py force test rebuild --- todoist_api_python/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/todoist_api_python/models.py b/todoist_api_python/models.py index 065139d..79d2539 100644 --- a/todoist_api_python/models.py +++ b/todoist_api_python/models.py @@ -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(