From 60146f0c30f1777879bc4c23cc152e28dcdff5df Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 2 Jul 2026 16:52:49 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20survey=20amendment=20trigger=20defers=20?= =?UTF-8?q?first-time=20survey=20dates=20to=20the=20creation=20trigger=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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index 8e11efa52..c4e9c0148 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -196,6 +196,10 @@ class HubspotDealDiffer: if not HubspotDealDiffer._is_abri_condition_deal(new_deal, new_project): return False + # A first-time survey date is a creation, not an amendment. + if old_deal.confirmed_survey_date is None: + return False + new_survey_date = parse_hs_date(new_deal.get("confirmed_survey_date")) if old_deal.confirmed_survey_date != new_survey_date: return True