mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Abri deal abandonment names its attempt threshold 🟪
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
18989252f4
commit
f4f915cfb7
1 changed files with 5 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ class HubspotDealDiffer:
|
||||||
]
|
]
|
||||||
RETROFIT_DESIGN_COMPLETE = "uploaded"
|
RETROFIT_DESIGN_COMPLETE = "uploaded"
|
||||||
LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"]
|
LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"]
|
||||||
|
ABANDONMENT_ATTEMPTS_THRESHOLD = 3
|
||||||
NEGATIVE_OUTCOMES: List[str] = [
|
NEGATIVE_OUTCOMES: List[str] = [
|
||||||
"no answer",
|
"no answer",
|
||||||
"cancelled",
|
"cancelled",
|
||||||
|
|
@ -259,7 +260,10 @@ class HubspotDealDiffer:
|
||||||
number_of_attempts: Optional[str], outcome: Optional[str]
|
number_of_attempts: Optional[str], outcome: Optional[str]
|
||||||
) -> bool:
|
) -> bool:
|
||||||
attempts = parse_hs_int(number_of_attempts)
|
attempts = parse_hs_int(number_of_attempts)
|
||||||
if attempts is None or attempts < 3:
|
if (
|
||||||
|
attempts is None
|
||||||
|
or attempts < HubspotDealDiffer.ABANDONMENT_ATTEMPTS_THRESHOLD
|
||||||
|
):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return (outcome or "").lower() in HubspotDealDiffer.NEGATIVE_OUTCOMES
|
return (outcome or "").lower() in HubspotDealDiffer.NEGATIVE_OUTCOMES
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue