allowing retrofit energy assessments bucket to be a presignable bucket

This commit is contained in:
Khalim Conn-Kowlessar 2024-09-09 12:43:50 +01:00
parent ed4440f946
commit e434b665d5
2 changed files with 3 additions and 3 deletions

View file

@ -176,7 +176,7 @@ module "retrofit_hotwater_kwh_predictions" {
}
module "retrofit_energy_assessments" {
source = "./modules/s3"
source = "./modules/s3_presignable_bucket"
bucketname = "retrofit-energy-assessments-${var.stage}"
allowed_origins = var.allowed_origins
}

View file

@ -534,8 +534,8 @@ class Recommendations:
property_phase_impact["carbon"], rec["co2_equivalent_savings"]
)
# Insert this information into the recommendation
if rec.get("survey", False):
# Insert this information into the recommendation.
if not rec.get("survey", False):
rec["sap_points"] = property_phase_impact["sap"]
rec["co2_equivalent_savings"] = property_phase_impact["carbon"]