mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
refactor: centralize MoviePilot server helper
This commit is contained in:
@@ -5,8 +5,8 @@ from fastapi import FastAPI
|
||||
|
||||
from app.chain.system import SystemChain
|
||||
from app.core.config import global_vars
|
||||
from app.helper.server import MoviePilotServerHelper
|
||||
from app.helper.system import SystemHelper
|
||||
from app.helper.usage import UsageHelper
|
||||
from app.startup.command_initializer import init_command, stop_command, restart_command
|
||||
from app.startup.modules_initializer import init_modules, stop_modules
|
||||
from app.startup.monitor_initializer import stop_monitor, init_monitor
|
||||
@@ -31,7 +31,7 @@ async def init_extra():
|
||||
# 重启完成
|
||||
SystemChain().restart_finish()
|
||||
# 上报当前安装版本
|
||||
await UsageHelper().async_report()
|
||||
await MoviePilotServerHelper.async_report_usage()
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
|
||||
Reference in New Issue
Block a user