feat: add priority filtering and sort stability to V3 Lookup System
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user