Added estiamted to property details epc

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-04 09:39:12 +00:00
parent a42cb555d2
commit 439f4d65c7
2 changed files with 2 additions and 0 deletions

View file

@ -498,6 +498,7 @@ class Property(Definitions):
"primary_energy_consumption": self.energy["primary_energy_consumption"],
"co2_emissions": self.energy["co2_emissions"],
"adjusted_energy_consumption": self.current_adjusted_energy,
"estimated": self.data.get("estimated", False)
}
return property_details_epc

View file

@ -153,6 +153,7 @@ class PropertyDetailsEpcModel(Base):
primary_energy_consumption = Column(Float)
co2_emissions = Column(Float)
adjusted_energy_consumption = Column(Float)
estimated = Column(Boolean, default=False)
class PropertyDetailsSpatial(Base):