mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
fix statistic info api
This commit is contained in:
@@ -17,11 +17,11 @@ router = APIRouter()
|
|||||||
|
|
||||||
|
|
||||||
@router.get("/statistic", summary="媒体数量统计", response_model=schemas.Statistic)
|
@router.get("/statistic", summary="媒体数量统计", response_model=schemas.Statistic)
|
||||||
def statistic(_: schemas.TokenPayload = Depends(verify_token)) -> Any:
|
def statistic(name: str = None, _: schemas.TokenPayload = Depends(verify_token)) -> Any:
|
||||||
"""
|
"""
|
||||||
查询媒体数量统计信息
|
查询媒体数量统计信息
|
||||||
"""
|
"""
|
||||||
media_statistics: Optional[List[schemas.Statistic]] = DashboardChain().media_statistic()
|
media_statistics: Optional[List[schemas.Statistic]] = DashboardChain().media_statistic(name)
|
||||||
if media_statistics:
|
if media_statistics:
|
||||||
# 汇总各媒体库统计信息
|
# 汇总各媒体库统计信息
|
||||||
ret_statistic = schemas.Statistic()
|
ret_statistic = schemas.Statistic()
|
||||||
|
|||||||
Reference in New Issue
Block a user