added env impact scores to db

This commit is contained in:
Khalim Conn-Kowlessar 2026-04-09 16:31:50 +01:00
parent 3380b6cbc8
commit fbf23bc898
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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"