Skip to content

Commit

Permalink
[ISSUE #15628] update release information and clean return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Dec 8, 2022
1 parent 80b2918 commit 51d612d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions airbyte-cdk/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.12.4
Lookback window should applied when a state is supplied as well

## 0.12.3
Low-code: Finally, make `OffsetIncrement.page_size` interpolated string or int

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ def stream_slices(self, sync_mode: SyncMode, stream_state: Mapping[str, Any]) ->
cursor_datetime = self._calculate_cursor_datetime_from_state(stream_state)
start_datetime = max(earliest_possible_start_datetime, cursor_datetime) - lookback_delta

dates = self._partition_daterange(start_datetime, end_datetime, self._step)
return dates
return self._partition_daterange(start_datetime, end_datetime, self._step)

def _calculate_cursor_datetime_from_state(self, stream_state: Mapping[str, Any]) -> datetime.datetime:
if self.cursor_field.eval(self.config, stream_state=stream_state) in stream_state:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-cdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="airbyte-cdk",
version="0.12.3",
version="0.12.4",
description="A framework for writing Airbyte Connectors.",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 51d612d

Please sign in to comment.