This commit is contained in:
Iain Learmonth 2023-01-21 15:15:07 +00:00
parent 6df0083842
commit 10ffdff2c3
14 changed files with 46 additions and 16 deletions

View file

@ -32,7 +32,7 @@ class Bridgelines(BaseModel):
title = "Bridgelines Version 1"
def bridgelines(pool: Pool, *, distribution_method: Optional[str] = None) -> Dict[str, Any]:
def bridgelines(_, *, distribution_method: Optional[str] = None) -> Dict[str, Any]:
bridges: Iterable[Bridge] = Bridge.query.filter(
Bridge.destroyed.is_(None),
Bridge.deprecated.is_(None),

View file

@ -35,7 +35,7 @@ class MirrorMapping(BaseModel):
title = "Mirror Mapping Version 1.1"
def mirror_mapping(ignored_pool: Pool) -> Dict[str, Union[str, Dict[str, str]]]:
def mirror_mapping(_) -> Dict[str, Union[str, Dict[str, str]]]:
return MirrorMapping(
version="1.1",
mappings={

View file

@ -42,7 +42,7 @@ def redirector_pool(pool: Pool) -> RedirectorPool:
)
def redirector_data(ignored_pool: Optional[Pool]) -> Dict[str, Union[str, Dict[str, Union[Dict[str, str]]]]]:
def redirector_data(_) -> Dict[str, Union[str, Dict[str, Union[Dict[str, str]]]]]:
active_pools = Pool.query.filter(
Pool.destroyed.is_(None)
).all()