From bd0c45aa5718f6015f1cb3db768ff035f2559c94 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 2 Jul 2026 16:00:09 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20Condition=20project=20code=20lives=20in?= =?UTF-8?q?=20a=20reusable=20class=20constant=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 bacc60459..b2a9024b2 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -12,6 +12,7 @@ class HubspotDealDiffer: ] RETROFIT_DESIGN_COMPLETE = "uploaded" LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"] + ABRI_CONDITION_PROJECT_CODE = "Abri Condition" @staticmethod def check_for_db_update_trigger( @@ -174,7 +175,10 @@ class HubspotDealDiffer: def check_for_abri_survey_creation( new_deal: Dict[str, str], old_deal: HubspotDealData ) -> bool: - if new_deal.get("project_code") != "Abri Condition": + if ( + new_deal.get("project_code") + != HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE + ): return False return old_deal.confirmed_survey_date is None