From 1cbcfefa696df8730e0d5b63f6c14bee0652f8c2 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 5 Aug 2024 18:09:32 +0100 Subject: [PATCH] handing decently insulated wall --- recommendations/WallRecommendations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recommendations/WallRecommendations.py b/recommendations/WallRecommendations.py index 7aeabc7a..edfc4d66 100644 --- a/recommendations/WallRecommendations.py +++ b/recommendations/WallRecommendations.py @@ -236,8 +236,8 @@ class WallRecommendations(Definitions): # + it already has a U-value better than the building regulations, so we don't need to recommend anything if ( (not is_cavity_wall) - and (self.property.year_built >= self.YEAR_WALLS_BUILT_WITH_INSULATION) - and (u_value <= self.BUILDING_REGULATIONS_PART_L_MAX_U_VALUE) + and ((self.property.year_built >= self.YEAR_WALLS_BUILT_WITH_INSULATION) + or (u_value <= self.BUILDING_REGULATIONS_PART_L_MAX_U_VALUE)) ): # Recommend nothing return