diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index b3a385be..675aa59f 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -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