Deal differ detects number of attempts changes for db update 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-03 10:17:51 +00:00
parent c00ae894ee
commit 18989252f4
3 changed files with 4 additions and 0 deletions

View file

@ -294,6 +294,7 @@ class HubspotClient:
"dealstage",
"pipeline",
"outcome",
"number_of_attempts",
"outcome_notes",
"booking_status",
"project_code",

View file

@ -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"),

View file

@ -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",