diff --git a/recommendations/optimiser/optimiser_functions.py b/recommendations/optimiser/optimiser_functions.py index 6159b930..d6353eea 100644 --- a/recommendations/optimiser/optimiser_functions.py +++ b/recommendations/optimiser/optimiser_functions.py @@ -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( [