From b3942f8121d049c79d14c43ac4170f5ce67305f4 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 17 Apr 2026 13:51:23 +0000 Subject: [PATCH] correct reading of coordination status --- etl/hubspot/hubspot_deal_differ.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index f4ece663..74c8264d 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -149,7 +149,7 @@ class HubspotDealDiffer: def _coordination_completed( new_deal: Dict[str, str], old_deal: HubspotDealData ) -> bool: - new_status: str = new_deal.get("coordination_status", "") + new_status: str = new_deal.get("coordination_status") or "" return ( new_status != "" and new_status.lower() in HubspotDealDiffer.COORDINATION_COMPLETE @@ -158,7 +158,7 @@ class HubspotDealDiffer: @staticmethod def _design_completed(new_deal: Dict[str, str], old_deal: HubspotDealData) -> bool: - new_status: str = new_deal.get("design_status", "") + new_status: str = new_deal.get("coordination_status") or "" return ( new_status != "" and new_status.lower() == HubspotDealDiffer.RETROFIT_DESIGN_COMPLETE @@ -169,7 +169,7 @@ class HubspotDealDiffer: def _lodgement_completed( new_deal: Dict[str, str], old_deal: HubspotDealData ) -> bool: - new_status: str = new_deal.get("lodgement_status", "") + new_status: str = new_deal.get("coordination_status") or "" return ( new_status != "" and new_status.lower() in HubspotDealDiffer.LODGEMENT_COMPLETE