From ccfad86f6a3b751250936c55e3205f90d98d2c23 Mon Sep 17 00:00:00 2001 From: Iuri de Silvio Date: Tue, 5 Nov 2024 12:29:44 +0100 Subject: [PATCH] Revert "Allow null "updated" or "created" timestamps" (#340) --- roboflow/core/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roboflow/core/project.py b/roboflow/core/project.py index 6c51b13a..b7e66c0f 100644 --- a/roboflow/core/project.py +++ b/roboflow/core/project.py @@ -60,7 +60,7 @@ def __init__(self, api_key: str, a_project: dict, model_format: Optional[str] = self.annotation = a_project["annotation"] self.classes = a_project["classes"] self.colors = a_project["colors"] - self.created = datetime.datetime.fromtimestamp(a_project["created"]) if a_project["created"] else None + self.created = datetime.datetime.fromtimestamp(a_project["created"]) self.id = a_project["id"] self.images = a_project["images"] self.name = a_project["name"] @@ -69,7 +69,7 @@ def __init__(self, api_key: str, a_project: dict, model_format: Optional[str] = self.type = a_project["type"] self.multilabel = a_project.get("multilabel", False) self.unannotated = a_project["unannotated"] - self.updated = datetime.datetime.fromtimestamp(a_project["updated"]) if a_project["updated"] else None + self.updated = datetime.datetime.fromtimestamp(a_project["updated"]) self.model_format = model_format temp = self.id.rsplit("/")