Skip to content

Commit

Permalink
Get active plugin in find_plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Pingdred committed Aug 7, 2023
1 parent 8ce1327 commit 087a387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/cat/mad_hatter/mad_hatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, ccat):
self.hooks = [] # list of active plugins hooks
self.tools = [] # list of active plugins tools

self.active_plugins = self.load_active_plugins_from_db()
self.active_plugins = []

self.find_plugins()

Expand Down Expand Up @@ -80,6 +80,8 @@ def find_plugins(self):
# and stored in a dictionary plugin_id -> plugin_obj
self.plugins = {}

self.active_plugins = self.load_active_plugins_from_db()

# plugins are found in the plugins folder,
# plus the default core plugin s(where default hooks and tools are defined)
core_plugin_folder = "cat/mad_hatter/core_plugin/"
Expand Down

0 comments on commit 087a387

Please sign in to comment.