MoviePilot/app/chain/dashboard.py
thsrite c1ecdfc61d Revert "fix #907"
This reverts commit 4dcefb141a6d1958e36156155d0b1f8a89aafcc5.
2024-01-10 11:19:25 +08:00

23 lines
565 B
Python

from typing import Optional, List
from app import schemas
from app.chain import ChainBase
from app.utils.singleton import Singleton
class DashboardChain(ChainBase, metaclass=Singleton):
"""
各类仪表板统计处理链
"""
def media_statistic(self) -> Optional[List[schemas.Statistic]]:
"""
媒体数量统计
"""
return self.run_module("media_statistic")
def downloader_info(self) -> schemas.DownloaderInfo:
"""
下载器信息
"""
return self.run_module("downloader_info")