fixed bug with selecting batter solar recommendations

This commit is contained in:
Khalim Conn-Kowlessar 2024-04-10 18:54:58 +01:00
parent 505fe0736b
commit f04b79d680

View file

@ -22,7 +22,7 @@ def prepare_input_measures(property_recommendations, goal):
# if the recommendation is a solar recommendation without a battery, we exclude it from the optimisation.
# That will ensure that the optimiser only considers solar recommendations with batteries, so we don't
# under-report the potential cost
recs = [r for r in recs if recs["has_battery"]]
recs = [r for r in recs if r["has_battery"]]
input_measures.append(
[