Skip to content

Commit

Permalink
Change kp endpoint for infores catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
maximusunc committed Oct 10, 2024
1 parent b1f3bc4 commit a288776
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions strider/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,13 @@ async def generate_traversal_plan(
async def get_kps():
"""Return all kps in registry."""
registry = await get_kp_registry()
# print(registry)
return list(registry.keys())
return sorted(
list(
kp["infores"]
for kp in registry.values()
if kp["maturity"] == settings.openapi_server_maturity
)
)


class ClearCacheRequest(BaseModel):
Expand Down

0 comments on commit a288776

Please sign in to comment.