fix dboper

This commit is contained in:
jxxghp
2023-06-15 07:12:59 +08:00
parent 7506f39258
commit ab4895ff85
13 changed files with 106 additions and 89 deletions

View File

@ -1,7 +1,7 @@
import traceback
from typing import List, Any
from app.db.systemconfigs import SystemConfigs
from app.db.systemconfig_oper import SystemConfigOper
from app.helper.module import ModuleHelper
from app.log import logger
from app.utils.singleton import Singleton
@ -11,7 +11,7 @@ class PluginManager(metaclass=Singleton):
"""
插件管理器
"""
systemconfigs: SystemConfigs = None
systemconfigs: SystemConfigOper = None
# 插件列表
_plugins: dict = {}
@ -24,7 +24,7 @@ class PluginManager(metaclass=Singleton):
self.init_config()
def init_config(self):
self.systemconfigs = SystemConfigs()
self.systemconfigs = SystemConfigOper()
# 停止已有插件
self.stop()
# 启动插件