mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Added eco-spreadsheet presign bucket
This commit is contained in:
parent
28550efbe5
commit
1a6da7b690
2 changed files with 18 additions and 10 deletions
|
|
@ -77,16 +77,16 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
session, portfolio_id=body.portfolio_id, address=config['address'], postcode=config['postcode']
|
||||
)
|
||||
# if a new record was not created, we don't produduce recommendations
|
||||
# if not is_new:
|
||||
# continue
|
||||
# # TODO: Need to add heat demand target
|
||||
# create_property_targets(
|
||||
# session,
|
||||
# property_id=property_id,
|
||||
# portfolio_id=body.portfolio_id,
|
||||
# epc_target=body.goal_value,
|
||||
# heat_demand_target=None
|
||||
# )
|
||||
if not is_new:
|
||||
continue
|
||||
# TODO: Need to add heat demand target
|
||||
create_property_targets(
|
||||
session,
|
||||
property_id=property_id,
|
||||
portfolio_id=body.portfolio_id,
|
||||
epc_target=body.goal_value,
|
||||
heat_demand_target=None
|
||||
)
|
||||
|
||||
input_properties.append(
|
||||
Property(
|
||||
|
|
@ -127,6 +127,7 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
recommendations_scoring_data = []
|
||||
|
||||
for p in input_properties:
|
||||
|
||||
property_recommendations = []
|
||||
|
||||
# Property recommendations
|
||||
|
|
|
|||
|
|
@ -98,6 +98,13 @@ module "s3_due_considerations_bucket" {
|
|||
allowed_origins = var.allowed_origins
|
||||
}
|
||||
|
||||
module "s3_eco_spreadseet_bucket" {
|
||||
source = "./modules/s3_presignable_bucket"
|
||||
bucketname = "retrofit-eco-spreadsheet-${var.stage}"
|
||||
environment = var.stage
|
||||
allowed_origins = var.allowed_origins
|
||||
}
|
||||
|
||||
module "s3" {
|
||||
source = "./modules/s3"
|
||||
bucketname = "retrofit-datalake-${var.stage}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue