mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri survey creation trigger matches the Abri Condition project code case-insensitively 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
5b9038ab61
commit
fb2b7e164c
1 changed files with 2 additions and 4 deletions
|
|
@ -175,10 +175,8 @@ class HubspotDealDiffer:
|
|||
def check_for_abri_survey_creation(
|
||||
new_deal: Dict[str, str], old_deal: HubspotDealData
|
||||
) -> bool:
|
||||
if (
|
||||
new_deal.get("project_code")
|
||||
!= HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE
|
||||
):
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue