Merge pull request #662 from Hestia-Homes/portfolio-diagnostics

fixed typing bug
This commit is contained in:
KhalimCK 2026-01-10 22:58:00 +00:00 committed by GitHub
commit 3809066cbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -805,7 +805,7 @@ class Property:
:return:
"""
current_sap_rating = self.data["current-energy-efficiency"]
current_sap_rating = float(self.data["current-energy-efficiency"])
if needs_rebaselining:
current_sap_rating += rebaselining_sap

View file

@ -93,6 +93,8 @@ DESCRIPTIONS_TO_FUEL_TYPES = {
"Community scheme with CHP, mains gas": {"fuel": "Natural Gas", "cop": 0.85},
"Air source heat pump, radiators and underfloor, electric": {"fuel": "Electricity",
"cop": AVERAGE_ASHP_EFFICIENCY / 100},
"Electric ceiling heating, radiators, electric": {"fuel": "Electricity", "cop": 1},
"Boiler and underfloor heating, mains gas, Boiler and radiators, mains gas": {"fuel": "Natural Gas", "cop": 0.85},
}
# These are the measure types where if there is a ventilation recommendation, we force the inclusion of it

View file

@ -5,7 +5,7 @@ from backend.app.db.connection import db_read_session
from backend.app.db.models.portfolio import PropertyModel, PropertyDetailsEpcModel
from backend.app.db.models.recommendations import Plan
PORTFOLIO_ID = 431
PORTFOLIO_ID = 433
with db_read_session() as session:
# Get all properties from PropertyDetailsEpcModel, where estimated is True, for portfolio 419