From e139031e6b550886c826f8d42d6fdf78e22fc164 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 4 Jun 2024 14:29:24 +0100 Subject: [PATCH] change the floor level logic --- backend/Property.py | 4 ++-- recommendations/Mds.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/Property.py b/backend/Property.py index cd2028cb..6336e42d 100644 --- a/backend/Property.py +++ b/backend/Property.py @@ -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 diff --git a/recommendations/Mds.py b/recommendations/Mds.py index e9e5cad8..c30cb231 100644 --- a/recommendations/Mds.py +++ b/recommendations/Mds.py @@ -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