From b7e7cd0e7d231984c3a6a38eaec7b1c7576f6a85 Mon Sep 17 00:00:00 2001 From: Dan <daniel2.lorych@live.uwe.ac.uk> Date: Mon, 2 May 2022 11:42:55 +0100 Subject: [PATCH] Add simple check for empty results --- Helios/Source/ConfiguratorService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Helios/Source/ConfiguratorService.cs b/Helios/Source/ConfiguratorService.cs index fa2d06a..96c2206 100644 --- a/Helios/Source/ConfiguratorService.cs +++ b/Helios/Source/ConfiguratorService.cs @@ -41,7 +41,10 @@ namespace Helios.Source result.ExceedsMaximumPower = ExceedsPowerLimit(input.MaximumPower, result.PowerGeneratedWinter); result.WithinBudget = WithinBudget(input.Budget, result.InstallationCost); - results.Add(result); + if (result.RoofAngle != 0) + { + results.Add(result); + } } } -- GitLab