Skip to content

Commit

Permalink
Update streams.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid authored Apr 18, 2024
1 parent 57728d1 commit ee61735
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tap_restaurant365/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class LimitedTimeframeStream(Restaurant365Stream):

name = "vendors"
path = "/Company"
previous_replications = [] # noqa: RUF012

def get_next_page_token(
self, response: requests.Response, previous_token: t.Optional[t.Any]
Expand All @@ -39,7 +38,6 @@ def get_next_page_token(
if "progress_markers" in self.tap_state["bookmarks"][self.name]:
replication_key_value = self.tap_state["bookmarks"][self.name]['progress_markers']["replication_key_value"]

self.previous_replications.append(replication_key_value)
start_date = (parser.parse(replication_key_value) + timedelta(seconds=1)) or parser.parse(self.config.get("start_date"))
today = datetime.today()
next_token = start_date.replace(tzinfo=None)
Expand Down

0 comments on commit ee61735

Please sign in to comment.