Skip to content

Commit

Permalink
updated metafields stream
Browse files Browse the repository at this point in the history
  • Loading branch information
somethingmorerelevant committed Jan 18, 2025
1 parent ce0aa21 commit a9742cc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tap_shopify/streams/metafields.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,10 @@ def call_api(self, query_params, query, data_key):
data = response.get("data", {}).get(data_key, {})
return data


def get_selected_parents(self):
for parent_stream in ['orders', 'customers', 'products', 'custom_collections']:
if Context.is_selected(parent_stream):
yield Context.stream_objects[parent_stream]()

def get_parents(self):

for parent in self.get_selected_parents():
for parent in ['orders', 'customers', 'products', 'custom_collections']:
if not Context.is_selected(parent):
continue
parent = self.parent_alias.get(parent, parent)
LOGGER.info("Fetching id's for %s", parent)

Expand Down

0 comments on commit a9742cc

Please sign in to comment.