From c87b982ebfb20b815644439c3d326dd700b71cf0 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 4 Jul 2024 21:58:10 +0800 Subject: [PATCH] fix bug --- app/modules/filemanager/__init__.py | 2 +- app/modules/indexer/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/filemanager/__init__.py b/app/modules/filemanager/__init__.py index e116597b..368164f2 100644 --- a/app/modules/filemanager/__init__.py +++ b/app/modules/filemanager/__init__.py @@ -37,7 +37,7 @@ class FileManagerModule(_ModuleBase): def init_module(self) -> None: # 加载模块 - self._storage_schemas = ModuleHelper.load('app.modules.filetransfer.storage', + self._storage_schemas = ModuleHelper.load('app.modules.filemanager.storage', filter_func=lambda _, obj: hasattr(obj, 'schema')) @staticmethod diff --git a/app/modules/indexer/__init__.py b/app/modules/indexer/__init__.py index ee2b470c..e4ccef76 100644 --- a/app/modules/indexer/__init__.py +++ b/app/modules/indexer/__init__.py @@ -50,7 +50,7 @@ class IndexerModule(_ModuleBase): return True, "" def init_setting(self) -> Tuple[str, Union[str, bool]]: - return "INDEXER", "builtin" + pass def search_torrents(self, site: CommentedMap, keywords: List[str] = None,