updated asset list for immo to reference already installed

This commit is contained in:
Khalim Conn-Kowlessar 2024-04-14 14:59:30 +01:00
parent c58389a266
commit f1e3bca9bf

View file

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