From f4f915cfb71d9923d23e3f73b2e408b4792b196f Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 3 Jul 2026 10:19:06 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20deal=20abandonment=20names=20its=20attem?= =?UTF-8?q?pt=20threshold=20=F0=9F=9F=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- etl/hubspot/hubspot_deal_differ.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index abb0f3d54..de9680e65 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -13,6 +13,7 @@ class HubspotDealDiffer: ] RETROFIT_DESIGN_COMPLETE = "uploaded" LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"] + ABANDONMENT_ATTEMPTS_THRESHOLD = 3 NEGATIVE_OUTCOMES: List[str] = [ "no answer", "cancelled", @@ -259,7 +260,10 @@ class HubspotDealDiffer: number_of_attempts: Optional[str], outcome: Optional[str] ) -> bool: attempts = parse_hs_int(number_of_attempts) - if attempts is None or attempts < 3: + if ( + attempts is None + or attempts < HubspotDealDiffer.ABANDONMENT_ATTEMPTS_THRESHOLD + ): return False return (outcome or "").lower() in HubspotDealDiffer.NEGATIVE_OUTCOMES