From 391cb356ee12270aa9f5a4ffeff6a917f07ff05e Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 19 Apr 2024 14:07:47 +0100 Subject: [PATCH] debugging recommendation when we have independent boiler upgrade and heating controls --- recommendations/HeatingRecommender.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recommendations/HeatingRecommender.py b/recommendations/HeatingRecommender.py index 2423901a..aa5cabdb 100644 --- a/recommendations/HeatingRecommender.py +++ b/recommendations/HeatingRecommender.py @@ -394,9 +394,13 @@ class HeatingRecommender: controls_recommender.recommend(heating_description="Boiler and radiators, mains gas") # We may have 2 recommendations from the heating controls - if not controls_recommender.recommendation: + if not controls_recommender.recommendation and not boiler_recommendation: return + if not system_change and len(boiler_recommendation): + # If there is not a system change, we add the boiler recommendation at point. + self.recommendations.append(boiler_recommendation) + if system_change: # We combine the heating and controls recommendations, in the case of a system change combined_recommendations = []