mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri survey creation trigger ignores syncs with no parseable confirmed_survey_date 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c059771af5
commit
7aabfdfa5b
1 changed files with 5 additions and 1 deletions
|
|
@ -178,7 +178,11 @@ class HubspotDealDiffer:
|
|||
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
|
||||
|
||||
if old_deal.confirmed_survey_date is not None:
|
||||
return False
|
||||
|
||||
return parse_hs_date(new_deal.get("confirmed_survey_date")) is not None
|
||||
|
||||
@staticmethod
|
||||
def check_for_magicplan_trigger(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue