From 7aabfdfa5b4f7fb7a335e67566d497bdfcade61a Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 2 Jul 2026 16:02:36 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20survey=20creation=20trigger=20ignores=20?= =?UTF-8?q?syncs=20with=20no=20parseable=20confirmed=5Fsurvey=5Fdate=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, 5 insertions(+), 1 deletion(-) diff --git a/etl/hubspot/hubspot_deal_differ.py b/etl/hubspot/hubspot_deal_differ.py index 29fd15c35..2e963eb54 100644 --- a/etl/hubspot/hubspot_deal_differ.py +++ b/etl/hubspot/hubspot_deal_differ.py @@ -178,7 +178,11 @@ class HubspotDealDiffer: 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 + + if old_deal.confirmed_survey_date is not None: + return False + + return parse_hs_date(new_deal.get("confirmed_survey_date")) is not None @staticmethod def check_for_magicplan_trigger(