Abri survey creation trigger ignores deals outside the Abri Condition project 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-02 15:59:38 +00:00
parent 882eb1eff9
commit 97bf001fbf

View file

@ -174,6 +174,8 @@ class HubspotDealDiffer:
def check_for_abri_survey_creation(
new_deal: Dict[str, str], old_deal: HubspotDealData
) -> bool:
if new_deal.get("project_code") != "Abri Condition":
return False
return old_deal.confirmed_survey_date is None
@staticmethod