mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri Condition project code lives in a reusable class constant 🟪
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
97bf001fbf
commit
bd0c45aa57
1 changed files with 5 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ class HubspotDealDiffer:
|
|||
]
|
||||
RETROFIT_DESIGN_COMPLETE = "uploaded"
|
||||
LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"]
|
||||
ABRI_CONDITION_PROJECT_CODE = "Abri Condition"
|
||||
|
||||
@staticmethod
|
||||
def check_for_db_update_trigger(
|
||||
|
|
@ -174,7 +175,10 @@ 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":
|
||||
if (
|
||||
new_deal.get("project_code")
|
||||
!= HubspotDealDiffer.ABRI_CONDITION_PROJECT_CODE
|
||||
):
|
||||
return False
|
||||
return old_deal.confirmed_survey_date is None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue