mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri survey creation trigger recognises deals by their associated Abri project id 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
cc682e3e74
commit
cf5a272d7e
1 changed files with 7 additions and 0 deletions
|
|
@ -191,6 +191,13 @@ class HubspotDealDiffer:
|
|||
def _is_abri_condition_deal(
|
||||
new_deal: Dict[str, str], new_project: Optional[ProjectData]
|
||||
) -> bool:
|
||||
if (
|
||||
new_project is not None
|
||||
and new_project["project_id"]
|
||||
== HubspotDealDiffer.ABRI_CONDITION_ASSOCIATED_PROJECT_ID
|
||||
):
|
||||
return True
|
||||
|
||||
new_project_code = (new_deal.get("project_code") or "").lower()
|
||||
return new_project_code == HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE.lower()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue