need to calculate property default savings

This commit is contained in:
Khalim Conn-Kowlessar 2024-08-09 18:23:39 +01:00
parent 2efb2a4f3e
commit f985f2b11c

View file

@ -881,8 +881,6 @@ async def trigger_plan(body: PlanTriggerRequest):
rec["kwh_savings"] = total_kwh_savings
rec["energy_cost_savings"] = energy_cost_savings
# TODO: Given the default recommendations, calcualte a total kwh and cost saving for the property!!!
# Insert the predictions into the recommendations and run the optimiser
# TODO: If a recommendation has a negative impact on SAP, we should remove it - this seems to have become a
# possibility with heating system
@ -944,6 +942,14 @@ async def trigger_plan(body: PlanTriggerRequest):
]
recommendations[p.id] = final_recommendations
# # TODO: Given the default recommendations, calcualte a total kwh and cost saving for the property!!!
# default_savings = [
# {
# "kwh_savings": rec["kwh_savings"],
# "energy_cost_savings": rec["energy_cost_savings"]
# } for recs in property_recommendations for rec in recs if rec["default"]
# ]
# 1) the property data
# 2) the property details (epc)
# 3) the recommendations