From ec04cab62ff9c15d7ffbceb8b0b53fb9f500c4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20R=C3=ADos?= Date: Fri, 11 Oct 2024 15:50:51 +0200 Subject: [PATCH] fix: `ossd` failing pipeline (#2340) --- .../oso_dagster/dlt_sources/github_repos/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py b/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py index f7cbe831..0f10c2f2 100644 --- a/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py +++ b/warehouse/oso_dagster/dlt_sources/github_repos/__init__.py @@ -60,8 +60,8 @@ class Repository(BaseModel): license_spdx_id: str license_name: str language: str - created_at: Optional[datetime] - updated_at: Optional[datetime] + created_at: datetime + updated_at: datetime class InvalidGithubURL(Exception): @@ -131,8 +131,8 @@ def gh_repository_to_repository( url=repo.html_url, is_fork=repo.fork, language=repo.language or "", - created_at=repo.created_at or None, - updated_at=repo.updated_at or None, + created_at=repo.created_at or datetime.fromtimestamp(0), + updated_at=repo.updated_at or datetime.fromtimestamp(0), )