From 00c8a9496a8d24fdeb8a05ac089edc398ef090d2 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 17 Apr 2025 15:02:14 +0000 Subject: [PATCH] merge the chagnse to main --- etl/dimitra_hubspot_notes_gather.py | 5 ++++- etl/hubspot_to_invoice.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/etl/dimitra_hubspot_notes_gather.py b/etl/dimitra_hubspot_notes_gather.py index 1c38646..ea069cf 100644 --- a/etl/dimitra_hubspot_notes_gather.py +++ b/etl/dimitra_hubspot_notes_gather.py @@ -80,7 +80,10 @@ for pipeline in pipelines.results: deal_name = hubspot.get_deal_name_by_id(deals["deal_id"]) owner_name = "not assigned" if deals["deal_owner"]: - owner_name = hubspot.get_owner_name_from_id(deals['deal_owner']) + try: + owner_name = hubspot.get_owner_name_from_id(deals['deal_owner']) + except: + owner_name = "Couldn't find owner information" portal_id = 145275138 diff --git a/etl/hubspot_to_invoice.py b/etl/hubspot_to_invoice.py index d3f742d..86fc2fc 100644 --- a/etl/hubspot_to_invoice.py +++ b/etl/hubspot_to_invoice.py @@ -44,6 +44,7 @@ sp.move_deals_to_completed(deal_ids) P3) Write documentation for tech demos from Khalims demo Tuesday + P0) output the copy of rate card that was used P1) - Get read for demo, 3 examples of solar ( JJC AND SCIS), 3 examples of cavity wall ( SCIS and JJC) 12 in total P2) Review deem score with last weeks deem score values to ensure accuracy P3) Figure out what to do if I see an address that isn't registered but surveyrod