fix(lists): actually take pool into account for bridgelines
This commit is contained in:
parent
6f00deabbd
commit
64d74c0a57
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ class Bridgelines(BaseModel):
|
||||||
title = "Bridgelines Version 1"
|
title = "Bridgelines Version 1"
|
||||||
|
|
||||||
|
|
||||||
def bridgelines(_: Optional[Pool], *, distribution_method: Optional[str] = None) -> Dict[str, Any]:
|
def bridgelines(pool: Pool, *, distribution_method: Optional[str] = None) -> Dict[str, Any]:
|
||||||
bridges: Iterable[Bridge] = Bridge.query.filter(
|
bridges: Iterable[Bridge] = Bridge.query.filter(
|
||||||
Bridge.destroyed.is_(None),
|
Bridge.destroyed.is_(None),
|
||||||
Bridge.deprecated.is_(None),
|
Bridge.deprecated.is_(None),
|
||||||
|
@ -43,7 +43,7 @@ def bridgelines(_: Optional[Pool], *, distribution_method: Optional[str] = None)
|
||||||
if b.conf.distribution_method == distribution_method]
|
if b.conf.distribution_method == distribution_method]
|
||||||
return Bridgelines(
|
return Bridgelines(
|
||||||
version="1.0",
|
version="1.0",
|
||||||
bridgelines=[b.bridgeline for b in bridges]
|
bridgelines=[b.bridgeline for b in bridges if b.conf.pool_id == pool.id]
|
||||||
).dict()
|
).dict()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue