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