Handle where u-value is 0, instead of none

This commit is contained in:
Khalim Conn-Kowlessar 2025-12-14 19:40:31 +08:00
parent 33057b855f
commit 00c14e7493

View file

@ -150,7 +150,7 @@ class RoofRecommendations:
return
# If we have a u-value and we don't have a non-invasive recommendation, we can't recommend anything
if u_value and not any(
if (u_value is not None) and not any(
x in MEASURE_MAP["roof_insulation"] for x in [r["type"] for r in self.property.non_invasive_recommendations]
):
# We don't have enough information to provide a recommendation