Skip to content

Commit

Permalink
Update plugins.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Sep 18, 2023
1 parent 0c0e04c commit 5d3a136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/cat/routes/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def get_available_plugins(
# get manifest
manifest = deepcopy(p.manifest) # we make a copy to avoid modifying the plugin obj
manifest["active"] = p.id in active_plugins # pass along if plugin is active or not
manifest["used_hooks"] = [hook.name for hook in p.hooks]
manifest["used_hooks"] = [{ "name": hook.name, "priority": hook.priority } for hook in p.hooks]

# filter by query
plugin_text = [str(field) for field in manifest.values()]
Expand All @@ -49,7 +49,7 @@ async def get_available_plugins(
installed_plugins.append(manifest)

# do not show already installed plugins among registry plugins
registry_plugins_index.pop( manifest["plugin_url"], None )
registry_plugins_index.pop(manifest["plugin_url"], None)

return {
"filters": {
Expand Down

0 comments on commit 5d3a136

Please sign in to comment.