mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added env impact scores to db
This commit is contained in:
parent
3380b6cbc8
commit
fbf23bc898
2 changed files with 3 additions and 0 deletions
|
|
@ -890,6 +890,7 @@ class Property:
|
|||
"lodged_co2_emissions": float(self.epc_record.original_epc["co2-emissions-current"]),
|
||||
"lodged_heat_demand": float(self.epc_record.original_epc["energy-consumption-current"]),
|
||||
"has_been_remodelled": self.epc_record.has_been_remodelled,
|
||||
"environment_impact_current": self.epc_record.environment_impact_current
|
||||
}
|
||||
|
||||
return property_details_epc
|
||||
|
|
|
|||
|
|
@ -263,6 +263,8 @@ class PropertyDetailsEpcModel(Base):
|
|||
lodged_heat_demand = Column(Float)
|
||||
has_been_remodelled = Column(Boolean, default=False)
|
||||
|
||||
environment_impact_current = Column(Float)
|
||||
|
||||
|
||||
class PropertyDetailsSpatial(Base):
|
||||
__tablename__ = "property_details_spatial"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue