Skip to content

Commit

Permalink
Fix for bug introduced in PR #491
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Sep 6, 2022
1 parent 2dfd080 commit 9316e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flexmeasures/data/models/charts/belief_charts.py
Expand Up @@ -72,7 +72,7 @@ def chart_for_multiple_sensors(
**override_chart_specs: dict,
):
sensors_specs = []
condition = (
condition = list(
sensor.event_resolution
for sensor in sensors
if sensor.event_resolution > timedelta(0)
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/data/models/generic_assets.py
Expand Up @@ -381,7 +381,7 @@ def search_beliefs(
from flexmeasures.data.services.time_series import simplify_index

if sensors:
condition = (
condition = list(
bdf.event_resolution
for bdf in bdf_dict.values()
if bdf.event_resolution > timedelta(0)
Expand Down

0 comments on commit 9316e12

Please sign in to comment.