Skip to content

Commit

Permalink
fix: db query
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 Feb 29, 2024
1 parent 537940e commit 81d8afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexmeasures/ui/utils/breadcrumb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_siblings(entity: Sensor | Asset | Account | None) -> list[dict]:
else:
session = current_app.db.session
sibling_assets = session.scalars(
select(Asset).where(Asset.owner is None)
select(Asset).filter(Asset.account_id.is_(None))
).all()

siblings = [
Expand Down

0 comments on commit 81d8afb

Please sign in to comment.