mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-30 23:16:45 +00:00
fix _scheduler
This commit is contained in:
@@ -5,7 +5,7 @@ from app.db.downloadhistory_oper import DownloadHistoryOper
|
||||
from app.db.site_oper import SiteOper
|
||||
from app.plugins import _PluginBase
|
||||
from app.db.subscribe_oper import SubscribeOper
|
||||
from typing import Any, List, Dict, Tuple
|
||||
from typing import Any, List, Dict, Tuple, Optional
|
||||
|
||||
import pytz
|
||||
from apscheduler.schedulers.background import BackgroundScheduler
|
||||
@@ -51,6 +51,7 @@ class SubscribeStatistic(_PluginBase):
|
||||
downloadhis = None
|
||||
siteoper = None
|
||||
_cron: str = ""
|
||||
_scheduler: Optional[BackgroundScheduler] = None
|
||||
|
||||
def init_plugin(self, config: dict = None):
|
||||
self.subscribe = SubscribeOper()
|
||||
|
||||
Reference in New Issue
Block a user