Skip to content

Commit

Permalink
core: kraken: sort extension by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Dec 5, 2022
1 parent 8dfe3fe commit 3d65c9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/services/kraken/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def fetch_manifest() -> Any:
@version(1, 0)
async def get_installed_extensions() -> Any:
extensions = await kraken.get_configured_extensions()
return [
extensions_list = [
Extension(
identifier=extension.identifier,
name=extension.name,
Expand All @@ -71,6 +71,8 @@ async def get_installed_extensions() -> Any:
)
for extension in extensions
]
extensions_list.sort(key=lambda extension: extension.name)
return extensions_list


@app.post("/extension/install", status_code=status.HTTP_201_CREATED)
Expand Down

0 comments on commit 3d65c9f

Please sign in to comment.