Abri tenant data fetch requires a parseable new commencement date 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-03 08:27:42 +00:00
parent 47842da7b9
commit 5df1237b90

View file

@ -215,7 +215,10 @@ class HubspotDealDiffer:
if not HubspotDealDiffer._is_abri_condition_deal(new_deal, new_project):
return False
return old_deal.expected_commencement_date is None
if old_deal.expected_commencement_date is not None:
return False
return parse_hs_date(new_deal.get("expected_commencement_date")) is not None
@staticmethod
def _is_abri_condition_deal(