Abri Condition project code lives in a reusable class constant 🟪

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-02 16:00:09 +00:00
parent 97bf001fbf
commit bd0c45aa57

View file

@ -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