change the floor level logic

This commit is contained in:
Khalim Conn-Kowlessar 2024-06-04 14:29:24 +01:00
parent 23b62b0c54
commit e139031e6b
2 changed files with 4 additions and 2 deletions

View file

@ -847,8 +847,8 @@ class Property:
# where a property is marked as being on the first floor
if self.floor_level > 0:
# We check if there is another property below
if not self.floor["another_property_below"]:
# We check if there is another property below (for a non-sap assessment)
if not self.floor["another_property_below"] and self.floor["thermal_transmittance_unit"] is None:
self.floor_level = 0
return

View file

@ -146,6 +146,8 @@ class Mds:
self.property_instance.roof["is_pitched"] and
not self.roof_recommender.is_loft_already_insulated()
):
self.property_instance.data
pruned_measures.append(measure)
continue