mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
handling coal community heating fuel
This commit is contained in:
parent
00694a200d
commit
14c292a3ec
3 changed files with 11 additions and 4 deletions
|
|
@ -22,7 +22,6 @@ from recommendations.recommendation_utils import (
|
|||
)
|
||||
from backend.ml_models.AnnualBillSavings import AnnualBillSavings
|
||||
from backend.app.utils import sap_to_epc
|
||||
from backend.Funding import Funding
|
||||
import backend.app.assumptions as assumptions
|
||||
|
||||
ENVIRONMENT = os.environ.get("ENVIRONMENT", "dev")
|
||||
|
|
@ -340,7 +339,6 @@ class Property:
|
|||
recommendation_record=recommendation_record,
|
||||
recommendations=property_representative_recommendations,
|
||||
primary_recommendation_id=self.id,
|
||||
non_invasive_recommendations=self.non_invasive_recommendations,
|
||||
)
|
||||
|
||||
return scoring_dict
|
||||
|
|
@ -1243,7 +1241,8 @@ class Property:
|
|||
"heat network": "Natural Gas (Community Scheme)",
|
||||
"lpg": 'LPG',
|
||||
"biodiesel": "Smokeless Fuel",
|
||||
"b30d": "B30K Biofuel"
|
||||
"b30d": "B30K Biofuel",
|
||||
"coal": "Coal",
|
||||
}
|
||||
|
||||
self.heating_energy_source = list({
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ from sqlmodel import Session
|
|||
|
||||
from etl.epc.Record import EPCRecord
|
||||
from sqlalchemy.exc import IntegrityError, OperationalError
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from starlette.responses import Response
|
||||
from backend.app.BatterySapScorer import BatterySAPScorer
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
"""
|
||||
For the Peabody project, there were a number of subtasks that failed due to issues, with the most
|
||||
prominent being errors with the property address and ID data.
|
||||
|
||||
This script will fetch those failed subtasks, get the associated properties and delete the properties
|
||||
from the database so that the subtasks can be restarted cleanly.
|
||||
|
||||
Additionally, we wil find the problematic records and remove them
|
||||
"""
|
||||
Loading…
Add table
Reference in a new issue