From fc425b8b66d38305967e22d4a040a316848ddf35 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Tue, 17 Mar 2026 17:18:09 +0000 Subject: [PATCH] better comments --- etl/hubspot/hubspotClient.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etl/hubspot/hubspotClient.py b/etl/hubspot/hubspotClient.py index f93a736c..ed456478 100644 --- a/etl/hubspot/hubspotClient.py +++ b/etl/hubspot/hubspotClient.py @@ -162,7 +162,7 @@ class HubspotClient: response: AssociationsPageResponse = associations_api.get_page( # type: ignore[reportUnknownMemberType] object_type="deals", object_id=deal_id, - to_object_type="0-420", # <-- use your exact custom object name slug here + to_object_type="0-420", # <-- to get an listing object limit=1, ) @@ -373,9 +373,7 @@ class HubspotClient: properties: dict[str, str] = cast(dict[str, str], product.properties) # type: ignore[reportUnknownMemberType] name: str = properties.get("name") or "" - price: str = ( - properties.get("price") or properties.get("hs_price") or "0" - ) + price: str = properties.get("price") or properties.get("hs_price") or "0" # Build line item payload line_item_input = SimplePublicObjectInput(