From dd2a04f05e698b549815b5ab62219cd953c29f60 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 5 Jun 2025 18:14:14 +0100 Subject: [PATCH] deleted old hubspot data from asset list app --- asset_list/app.py | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/asset_list/app.py b/asset_list/app.py index 41623880..5e62bbe1 100644 --- a/asset_list/app.py +++ b/asset_list/app.py @@ -484,45 +484,6 @@ def app(): asset_list.block_analysis() - asset_list.load_contact_details( - local_filepath=os.path.join(data_folder, "Full property list wth D&V report V look up 12.2.25.xlsx"), - sheet_name="Report 1", - landlord_property_id=asset_list.landlord_property_id, - phone_number_column='Property Current Tel. Number', - fullname_column='Proeprty Current Occupant', - firstname_column=None, - lastname_column=None, - email_column=None, # TODO - we need this - ) - - # Convert to a format suitable for CRM - # TODO: TEMP - assigned_surveyors = pd.DataFrame( - [ - { - asset_list.landlord_property_id: "02610001", - "week_commencing": "10/10/2025", - "surveyor_name": "Khalim Conn-Kowlessar", - "surveyor_email": "khalim@domna.homes", - } - ] - ) - - # TODO: Sort the output by postcode - - company_domain = "ealing.gov.uk" - crm_pipeline_name = "Survey Management" - first_dealstage = "READY TO BEGIN SCHEDULING" - # TODO - temp, upload to either SharePoint or AWS - - asset_list.prepare_for_crm( - assigned_surveyors=assigned_surveyors, - company_domain=company_domain, - crm_pipeline_name=crm_pipeline_name, - first_dealstage=first_dealstage - ) - hubspot_data = asset_list.hubspot_data - # Store as an excel filename = os.path.join(data_folder, ".".join(data_filename.split(".")[:-1])) + " - Standardised.xlsx" # Store the data in two tabs. One for the asset list with the EPC data and the second with the flat data @@ -543,6 +504,3 @@ def app(): if not asset_list.ecosurv_no_match.empty: asset_list.ecosurv_no_match.to_excel(writer, sheet_name="Unmatched Ecosurv", index=False) - - # Store the Hubspot export as a csv - hubspot_data.to_csv(os.path.join(data_folder, "Hubspot Export.csv"), index=False)