feat: add priority filtering and sort stability to V3 Lookup System

This commit is contained in:
Scott Idem
2026-02-20 17:18:21 -05:00
parent 6bfbff309a
commit 48fc97cf46
5 changed files with 74 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ async def get_v3_lookup_list(
for_id: Optional[int] = Query(None),
site_id: Optional[str] = Query(None, min_length=8, max_length=22),
include_disabled: bool = Query(False),
only_priority: bool = Query(False),
account_ctx: AccountContext = Depends(get_account_context),
response: Response = Response
):
@@ -55,7 +56,8 @@ async def get_v3_lookup_list(
for_type=for_type,
for_id=for_id,
include_disabled=include_disabled,
whitelist=whitelist
whitelist=whitelist,
only_priority=only_priority
)
if not results and not include_disabled: