Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #59 from potloc/DE-1719-remove-the-post-process-fi…
Browse files Browse the repository at this point in the history
…x-to-avoid-hitting-rate-limit

DE-1719 Remove the post process fix to avoid hitting rate limit
  • Loading branch information
nielsmai authored Jun 1, 2023
2 parents 043bf25 + 851e1ec commit 703d688
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tap_hubspot/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict:
"""Return a context dictionary for child streams."""
return {"archived": record["archived"], "company_id": record["id"]}

def post_process(self, row: dict, context: Optional[dict]) -> dict:
"""As needed, append or transform raw data to match expected structure.
Returns row"""
return row


class DealsStream(HubspotStream):
"""Define custom stream."""
Expand Down Expand Up @@ -133,11 +128,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict:
"deal_id": record["id"],
}

def post_process(self, row: dict, context: Optional[dict]) -> dict:
"""As needed, append or transform raw data to match expected structure.
Returns row"""
return row


class ContactsStream(HubspotStream):
"""Define custom stream."""
Expand Down Expand Up @@ -165,11 +155,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict:
"""Return a context dictionary for child streams."""
return {"archived": record["archived"], "contact_id": record["id"]}

def post_process(self, row: dict, context: Optional[dict]) -> dict:
"""As needed, append or transform raw data to match expected structure.
Returns row"""
return row


class PropertiesStream(HubspotStream):
"""Define custom stream."""
Expand Down

0 comments on commit 703d688

Please sign in to comment.