From d72f364a8d032ca53c35c22c8dbe01ba354629df Mon Sep 17 00:00:00 2001 From: AAGaming Date: Thu, 30 Jun 2022 16:04:29 -0400 Subject: backwards-compatible plugin store, legacy plugin library --- backend/loader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/loader.py') diff --git a/backend/loader.py b/backend/loader.py index c420fafe..3f5d1ab8 100644 --- a/backend/loader.py +++ b/backend/loader.py @@ -116,7 +116,7 @@ class Loader: self.logger.info(f"Plugin {plugin.name} is passive") self.plugins[plugin.name] = plugin.start() self.logger.info(f"Loaded {plugin.name}") - self.loop.create_task(self.dispatch_plugin(plugin.name)) + self.loop.create_task(self.dispatch_plugin(plugin.name if not plugin.legacy else "$LEGACY_" + plugin.name)) except Exception as e: self.logger.error(f"Could not load {file}. {e}") print_exc() @@ -168,8 +168,8 @@ class Loader: with open(path.join(self.plugin_path, plugin.plugin_directory, plugin.main_view_html), 'r') as template: template_data = template.read() ret = f""" - - + + {template_data} """ -- cgit v1.2.3