mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
set up structure for uploading retrofit assessments but not going to implement right now
This commit is contained in:
parent
a46c0eed39
commit
54e29a98dc
2 changed files with 4 additions and 38 deletions
|
|
@ -36,6 +36,8 @@ async def upload(body: EnergyAssessmentUploadPayload):
|
|||
|
||||
Eventually, we will this service to collect the key documents from the service where they're uploaded
|
||||
(e.g. Onedrive) and store them to S3, but for the moment, this is sufficient
|
||||
|
||||
# TODO - Holding up on implementing this
|
||||
"""
|
||||
|
||||
logger.info("Connecting to db")
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ logger = setup_logger()
|
|||
BUCKET = "retrofit-energy-assessments-dev"
|
||||
USER_ID = 8
|
||||
SCENARIOS = {
|
||||
86: {
|
||||
101: {
|
||||
"project_code": "VDE001",
|
||||
"surveyor": "JAFFERSONS ENERGY CONSULTANTS",
|
||||
"bodies": [
|
||||
|
|
@ -64,42 +64,6 @@ SCENARIOS = {
|
|||
}
|
||||
]
|
||||
},
|
||||
87: {
|
||||
"project_code": "VDE002",
|
||||
"surveyor": "JAFFERSONS ENERGY CONSULTANTS",
|
||||
"bodies": [
|
||||
# Scenario A: Solar PV, AHSP
|
||||
{
|
||||
"portfolio_id": str(87),
|
||||
"housing_type": "Private",
|
||||
"goal": "Increasing EPC",
|
||||
"goal_value": "A",
|
||||
"trigger_file_path": "",
|
||||
"already_installed_file_path": "",
|
||||
"patches_file_path": "",
|
||||
"non_invasive_recommendations_file_path": "",
|
||||
"exclusions": ["floor_insulation", "fireplace"],
|
||||
"budget": None,
|
||||
"scenario_name": "Deep Retrofit",
|
||||
"multi_plan": True,
|
||||
},
|
||||
# Scenario B, floor insulation, PV, AHSP
|
||||
{
|
||||
"portfolio_id": str(87),
|
||||
"housing_type": "Private",
|
||||
"goal": "Increasing EPC",
|
||||
"goal_value": "A",
|
||||
"trigger_file_path": "",
|
||||
"already_installed_file_path": "",
|
||||
"patches_file_path": "",
|
||||
"non_invasive_recommendations_file_path": "",
|
||||
"exclusions": ["fireplace"],
|
||||
"budget": None,
|
||||
"scenario_name": "Whole House Retrofit",
|
||||
"multi_plan": True,
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -166,7 +130,7 @@ def main():
|
|||
# For each property, we download the xmls and extract the data
|
||||
database_data = []
|
||||
for uprn, xmls in assessments_map.items():
|
||||
|
||||
|
||||
extracted_data = {}
|
||||
for xml in xmls:
|
||||
xml_data = read_from_s3(bucket_name=BUCKET, s3_file_name=xml)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue