Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ericboucher committed Jun 28, 2022
1 parent fe6a2f7 commit 8dc6cad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions singer_sdk/streams/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ def _write_starting_replication_value(self, context: Optional[dict]) -> None:
if not value:
value = self.config["start_date"]
else:
value_datetime: DateTime = pendulum.parse(value)
start_datetime: DateTime = pendulum.parse(self.config["start_date"])
value_datetime = cast(datetime.datetime, pendulum.parse(value))
start_datetime = cast(
datetime.datetime, pendulum.parse(self.config["start_date"])
)
value = (
value
if value_datetime > start_datetime
Expand Down

0 comments on commit 8dc6cad

Please sign in to comment.