mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Deal differ detects number of attempts changes for db update 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c00ae894ee
commit
18989252f4
3 changed files with 4 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ class HubspotClient:
|
|||
"dealstage",
|
||||
"pipeline",
|
||||
"outcome",
|
||||
"number_of_attempts",
|
||||
"outcome_notes",
|
||||
"booking_status",
|
||||
"project_code",
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ class HubspotDataToDb:
|
|||
),
|
||||
"uprn": listing.get("national_uprn", None) if listing else None,
|
||||
"outcome": deal_data.get("outcome"),
|
||||
"number_of_attempts": deal_data.get("number_of_attempts"),
|
||||
"outcome_notes": deal_data.get("outcome_notes"),
|
||||
"booking_status": deal_data.get("booking_status"),
|
||||
"project_code": deal_data.get("project_code"),
|
||||
|
|
@ -322,6 +323,7 @@ class HubspotDataToDb:
|
|||
),
|
||||
uprn=listing.get("national_uprn") if listing else None,
|
||||
outcome=deal_data.get("outcome"),
|
||||
number_of_attempts=deal_data.get("number_of_attempts"),
|
||||
outcome_notes=deal_data.get("outcome_notes"),
|
||||
booking_status=deal_data.get("booking_status"),
|
||||
project_code=deal_data.get("project_code"),
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ class HubspotDealDiffer:
|
|||
# --- Field mappings ---
|
||||
FIELD_MAP = {
|
||||
"outcome": "outcome",
|
||||
"number_of_attempts": "number_of_attempts",
|
||||
"dealstage": "dealstage",
|
||||
"dealname": "dealname",
|
||||
"project_code": "project_code",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue