From fb2b7e164c065fa5c6df5f372b4c780831da73b8 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 2 Jul 2026 16:01:43 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20survey=20creation=20trigger=20matches=20?= =?UTF-8?q?the=20Abri=20Condition=20project=20code=20case-insensitively=20?= =?UTF-8?q?=F0=9F=9F=A9?= 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, 2 insertions(+), 4 deletions(-) diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index b2a9024b2..29fd15c35 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -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