use unsuccesseful outcoems constant directly in hubspot deal differ 🟪

This commit is contained in:
Daniel Roth 2026-07-08 14:37:15 +00:00
parent 4ac4dd8683
commit 31fc7ee115

View file

@ -16,7 +16,6 @@ class HubspotDealDiffer:
RETROFIT_DESIGN_COMPLETE = "uploaded"
LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"]
ABANDONMENT_ATTEMPTS_THRESHOLD = 3
NEGATIVE_OUTCOMES = UNSUCCESSFUL_OUTCOMES
# Verified against the portal (2026-07-07): Abri stock-condition deals
# carry no project association, so the project_code match is the branch
# that fires in production; the id below is the project object id
@ -328,7 +327,7 @@ class HubspotDealDiffer:
):
return False
return (outcome or "").lower() in HubspotDealDiffer.NEGATIVE_OUTCOMES
return (outcome or "").lower() in UNSUCCESSFUL_OUTCOMES
@staticmethod
def _is_abri_condition_deal(