Abri survey creation trigger matches the Abri Condition project code case-insensitively 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-02 16:01:43 +00:00
parent 5b9038ab61
commit fb2b7e164c

View file

@ -175,10 +175,8 @@ class HubspotDealDiffer:
def check_for_abri_survey_creation(
new_deal: Dict[str, str], old_deal: HubspotDealData
) -> bool:
if (
new_deal.get("project_code")
!= HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE
):
new_project_code = (new_deal.get("project_code") or "").lower()
if new_project_code != HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE.lower():
return False
return old_deal.confirmed_survey_date is None