Skip to content

Commit

Permalink
Add timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Feb 17, 2025
1 parent e4ebd51 commit cc56f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tap_shopify/streams/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def call_api_for_orders(self, gql_client, query, cursor=None):

def get_orders(self):
gql_client = shopify.GraphQL()
updated_at = self.max_bookmark.strftime('%Y-%m-%dT%H:%M:%S')
updated_at = self.max_bookmark.strftime('%Y-%m-%dT%H:%M:%SZ')
query = f"updated_at:>='{updated_at}'"

page = self.call_api_for_orders(gql_client, query)
Expand All @@ -357,8 +357,8 @@ def get_orders(self):
yield page

# Every 1,000 orders we will reset the cursor
if self.orders % 1_000 == 0 and updated_at != self.max_bookmark.strftime('%Y-%m-%dT%H:%M:%S'):
updated_at = self.max_bookmark.strftime('%Y-%m-%dT%H:%M:%S')
if self.orders % 1_000 == 0 and updated_at != self.max_bookmark.strftime('%Y-%m-%dT%H:%M:%SZ'):
updated_at = self.max_bookmark.strftime('%Y-%m-%dT%H:%M:%SZ')
query = f"updated_at:>='{updated_at}'"
cursor = None

Expand Down

0 comments on commit cc56f24

Please sign in to comment.