From fdeb15501f9a6f03215d454704dc2feffa3d6294 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 2 Jul 2026 16:29:11 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20survey=20creation=20trigger=20falls=20ba?= =?UTF-8?q?ck=20to=20project=20code=20only=20when=20no=20project=20is=20as?= =?UTF-8?q?sociated=20=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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index 636bf7521..68b075182 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -191,12 +191,11 @@ class HubspotDealDiffer: def _is_abri_condition_deal( new_deal: Dict[str, str], new_project: Optional[ProjectData] ) -> bool: - if ( - new_project is not None - and new_project["project_id"] - == HubspotDealDiffer.ABRI_CONDITION_ASSOCIATED_PROJECT_ID - ): - return True + if new_project is not None: + return ( + new_project["project_id"] + == HubspotDealDiffer.ABRI_CONDITION_ASSOCIATED_PROJECT_ID + ) new_project_code = (new_deal.get("project_code") or "").lower() return new_project_code == HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE.lower()