mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri survey amendment trigger stays quiet when the survey date and time are unchanged 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
fce9d30589
commit
bf344e1b58
1 changed files with 5 additions and 1 deletions
|
|
@ -193,7 +193,11 @@ class HubspotDealDiffer:
|
|||
new_project: Optional[ProjectData],
|
||||
old_deal: HubspotDealData,
|
||||
) -> bool:
|
||||
return HubspotDealDiffer._is_abri_condition_deal(new_deal, new_project)
|
||||
if not HubspotDealDiffer._is_abri_condition_deal(new_deal, new_project):
|
||||
return False
|
||||
|
||||
new_survey_date = parse_hs_date(new_deal.get("confirmed_survey_date"))
|
||||
return old_deal.confirmed_survey_date != new_survey_date
|
||||
|
||||
@staticmethod
|
||||
def _is_abri_condition_deal(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue