From 2a75a6db17c625ac9f4a78a55297a781c855beab Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 2 Oct 2024 20:19:25 +0100 Subject: [PATCH] adding heat demand to mds outputs --- backend/Outputs.py | 2 +- backend/app/db/functions/recommendations_functions.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/Outputs.py b/backend/Outputs.py index aef47b54..9cc3e38c 100644 --- a/backend/Outputs.py +++ b/backend/Outputs.py @@ -220,7 +220,7 @@ class Outputs: "uprn": "UPRN", "current_epc_rating": "Pre EPC", "current_sap_points": "EPC Source", - # TODO: Need to add current heat demand + "primary_energy_consumption": "Existing Heating Demand Kwh/m2/y", "property_type": "Property Type", "built_form": "Built Form", "total_floor_area": "Floor area m2 (If known)", diff --git a/backend/app/db/functions/recommendations_functions.py b/backend/app/db/functions/recommendations_functions.py index b03909ee..5f6791f2 100644 --- a/backend/app/db/functions/recommendations_functions.py +++ b/backend/app/db/functions/recommendations_functions.py @@ -121,6 +121,7 @@ def upload_recommendations(session: Session, recommendations_to_upload, property "energy_cost_savings": rec["energy_cost_savings"], "labour_days": rec["labour_days"], "already_installed": rec["already_installed"], + "head_demand": rec["heat_demand"] } for rec in recommendations_to_upload ]