mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixed typing bug
This commit is contained in:
parent
ab41daa56a
commit
ef7490fe44
3 changed files with 4 additions and 2 deletions
|
|
@ -805,7 +805,7 @@ class Property:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
current_sap_rating = self.data["current-energy-efficiency"]
|
current_sap_rating = float(self.data["current-energy-efficiency"])
|
||||||
if needs_rebaselining:
|
if needs_rebaselining:
|
||||||
current_sap_rating += rebaselining_sap
|
current_sap_rating += rebaselining_sap
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,8 @@ DESCRIPTIONS_TO_FUEL_TYPES = {
|
||||||
"Community scheme with CHP, mains gas": {"fuel": "Natural Gas", "cop": 0.85},
|
"Community scheme with CHP, mains gas": {"fuel": "Natural Gas", "cop": 0.85},
|
||||||
"Air source heat pump, radiators and underfloor, electric": {"fuel": "Electricity",
|
"Air source heat pump, radiators and underfloor, electric": {"fuel": "Electricity",
|
||||||
"cop": AVERAGE_ASHP_EFFICIENCY / 100},
|
"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
|
# These are the measure types where if there is a ventilation recommendation, we force the inclusion of it
|
||||||
|
|
|
||||||
|
|
@ -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.portfolio import PropertyModel, PropertyDetailsEpcModel
|
||||||
from backend.app.db.models.recommendations import Plan
|
from backend.app.db.models.recommendations import Plan
|
||||||
|
|
||||||
PORTFOLIO_ID = 431
|
PORTFOLIO_ID = 433
|
||||||
|
|
||||||
with db_read_session() as session:
|
with db_read_session() as session:
|
||||||
# Get all properties from PropertyDetailsEpcModel, where estimated is True, for portfolio 419
|
# Get all properties from PropertyDetailsEpcModel, where estimated is True, for portfolio 419
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue