fix MyPluginManager

This commit is contained in:
thsrite
2024-04-13 15:52:22 +08:00
parent d6c446c2fe
commit ccdca30ed9
2 changed files with 8 additions and 4 deletions

View File

@@ -14,12 +14,14 @@ from app.log import logger
from app.schemas.types import SystemConfigKey
from app.schemas import NotificationType
from app.scheduler import Scheduler
from app.helper.sites import SitesHelper
class MyPluginManager(PluginManager):
def __init__(self):
# 不调用父类PluginManager的__init__方法
pass
self.siteshelper = SitesHelper()
self.pluginhelper = PluginHelper()
self.systemconfig = SystemConfigOper()
class PluginAutoUpdate(_PluginBase):

View File

@@ -9,12 +9,14 @@ from typing import Any, List, Dict, Tuple, Optional
from app.log import logger
from app.schemas.types import SystemConfigKey
from app.utils.string import StringUtils
from app.helper.sites import SitesHelper
class MyPluginManager(PluginManager):
def __init__(self):
# 不调用父类PluginManager的__init__方法
pass
self.siteshelper = SitesHelper()
self.pluginhelper = PluginHelper()
self.systemconfig = SystemConfigOper()
class PluginReInstall(_PluginBase):