From f1e3bca9bff0c68ba9ce068c91a91268da794cb0 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Sun, 14 Apr 2024 14:59:30 +0100 Subject: [PATCH] updated asset list for immo to reference already installed --- etl/customers/immo/pilot/asset_list.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etl/customers/immo/pilot/asset_list.py b/etl/customers/immo/pilot/asset_list.py index 07ebe884..d8839924 100644 --- a/etl/customers/immo/pilot/asset_list.py +++ b/etl/customers/immo/pilot/asset_list.py @@ -48,7 +48,7 @@ patches = [ # This is information that is found as a result of the non-invasives, that mean that certain measures # have been installed already. To reflect this in the front end, it is included in the recommendation, however # the cost is removed and instead, a message is presented saying that the measure is already installed. -overrides = [ +already_installed = [ { 'address': '5 Oaklands', 'postcode': 'B62 0JA', @@ -87,11 +87,11 @@ def app(): ) # Store overrides in s3 - overrides_filename = f"{USER_ID}/{PORTFOLIO_ID}/overrides.json" + already_installed_filename = f"{USER_ID}/{PORTFOLIO_ID}/already_installed.json" save_csv_to_s3( - dataframe=pd.DataFrame(overrides), + dataframe=pd.DataFrame(already_installed), bucket_name="retrofit-plan-inputs-dev", - file_name=overrides_filename + file_name=already_installed_filename ) # Store patches in s3 @@ -109,7 +109,7 @@ def app(): "goal": "Increase EPC", "goal_value": "C", "trigger_file_path": filename, - "overrides_file_path": overrides_filename, + "already_installed_file_path": already_installed_filename, "patches_file_path": patches_filename, "budget": None, } @@ -122,7 +122,7 @@ def app(): "goal": "Increase EPC", "goal_value": "B", "trigger_file_path": filename, - "overrides_file_path": overrides_filename, + "already_installed_file_path": already_installed_filename, "patches_file_path": patches_filename, "budget": None, }