mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Handle where u-value is 0, instead of none
This commit is contained in:
parent
33057b855f
commit
00c14e7493
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue