Skip to content

Commit

Permalink
Merge pull request #11 from hotgluexyz/feature/gqlItems
Browse files Browse the repository at this point in the history
Remove inventory items filter
  • Loading branch information
hsyyid authored Nov 30, 2022
2 parents 40ce4da + 5d2eb96 commit 7d8dd9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="tap-shopify",
version="1.4.11",
version="1.4.12",
description="Singer.io tap for extracting Shopify data",
author="Stitch",
url="http://github.com/singer-io/tap-shopify",
Expand Down
12 changes: 1 addition & 11 deletions tap_shopify/streams/inventory_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ def get_objects(self):
yield inventory_item

def sync(self):
bookmark = self.get_bookmark()
max_bookmark = bookmark
for inventory_item in self.get_objects():
inventory_item_dict = inventory_item.to_dict()
replication_value = strptime_to_utc(inventory_item_dict[self.replication_key])
if replication_value >= bookmark:
yield inventory_item_dict

if replication_value > max_bookmark:
max_bookmark = replication_value

self.update_bookmark(strftime(max_bookmark))
yield inventory_item.to_dict()

Context.stream_objects['inventory_items'] = InventoryItems

0 comments on commit 7d8dd9f

Please sign in to comment.