From 97a3ef15bf42874152a299ac686feb2926b1de79 Mon Sep 17 00:00:00 2001 From: Rohit Chatterjee Date: Tue, 14 May 2024 13:07:51 +0530 Subject: [PATCH] state can't be {} --- .../connectors/source-glific/source_glific/source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connectors/source-glific/source_glific/source.py b/airbyte-integrations/connectors/source-glific/source_glific/source.py index 4e8a1f9111bb..b894a2c27b38 100644 --- a/airbyte-integrations/connectors/source-glific/source_glific/source.py +++ b/airbyte-integrations/connectors/source-glific/source_glific/source.py @@ -74,7 +74,7 @@ def __init__(self, stream_name: str, url_base: str, pagination_limit: int, crede self.start_time = config["start_time"] self.offset = 0 self.last_record = None - self.state = {} + self.state = {"updated_at": "2020-01-01T00:00:00Z"} @property def url_base(self) -> str: @@ -100,7 +100,7 @@ def path( def update_state(self) -> None: if self.latest_updated_date: - if not self.state or self.latest_updated_date > self.state["updated_at"]: + if self.latest_updated_date > self.state["updated_at"]: self.state = {"updated_at": self.latest_updated_date} self.latest_updated_date = None return None