From 71c88c7f80150d823d769ac9c6e2dbcbcf57f2ab Mon Sep 17 00:00:00 2001 From: sajarin Date: Fri, 1 Sep 2023 03:31:14 -0400 Subject: [PATCH] fix: replace years with days in reports base class --- .../connectors/source-harvest/source_harvest/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-harvest/source_harvest/streams.py b/airbyte-integrations/connectors/source-harvest/source_harvest/streams.py index 497c9bab5141..3e7d1b2e5617 100644 --- a/airbyte-integrations/connectors/source-harvest/source_harvest/streams.py +++ b/airbyte-integrations/connectors/source-harvest/source_harvest/streams.py @@ -299,7 +299,7 @@ def __init__(self, from_date: Optional[pendulum.date] = None, to_date: Optional[ super().__init__(**kwargs) current_date = pendulum.now().date() - self._from_date = from_date or current_date.subtract(years=1) + self._from_date = from_date or current_date.subtract(days=365) self._to_date = to_date or current_date # `to` date greater than `from` date causes an exception on Harvest if self._from_date > current_date: