🐛 修改webui导入路径 (#1783)

* 🐛 修改webui导入路径

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
HibiKier
2024-12-19 09:51:31 +08:00
committed by GitHub
co-authored by pre-commit-ci[bot]
parent a15303a891
commit a8e4d29031
16 changed files with 58 additions and 62 deletions
+3 -3
View File
@@ -120,7 +120,7 @@ async def _():
if module_list := await PluginInfo.all().values("id", "module_path"):
module2id = {m["module_path"]: m["id"] for m in module_list}
for plugin in get_loaded_plugins():
load_plugin.append(plugin.module_name)
load_plugin.append(plugin.name)
await _handle_setting(plugin, plugin_list, limit_list, task_list)
create_list = []
update_list = []
@@ -198,8 +198,8 @@ async def _():
10,
)
await data_migration()
await PluginInfo.filter(module_path__in=load_plugin).update(load_status=True)
await PluginInfo.filter(module_path__not_in=load_plugin).update(load_status=False)
await PluginInfo.filter(module__in=load_plugin).update(load_status=True)
await PluginInfo.filter(module__not_in=load_plugin).update(load_status=False)
manager.init()
if limit_list:
for limit in limit_list: