Abri survey amendment trigger stays quiet when the survey date and time are unchanged 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-02 16:49:19 +00:00
parent fce9d30589
commit bf344e1b58

View file

@ -193,7 +193,11 @@ class HubspotDealDiffer:
new_project: Optional[ProjectData],
old_deal: HubspotDealData,
) -> bool:
return HubspotDealDiffer._is_abri_condition_deal(new_deal, new_project)
if not HubspotDealDiffer._is_abri_condition_deal(new_deal, new_project):
return False
new_survey_date = parse_hs_date(new_deal.get("confirmed_survey_date"))
return old_deal.confirmed_survey_date != new_survey_date
@staticmethod
def _is_abri_condition_deal(