schedule() # 这会返回一个协程对象,但我们没有等待它

This commit is contained in:
cikezhu
2025-09-01 17:39:46 +08:00
parent 147e12acbb
commit d2756e6f2d

View File

@@ -123,7 +123,7 @@ async def schedule2(_: Annotated[str, Depends(verify_apitoken)]) -> Any:
"""
查询下载器信息 API_TOKEN认证?token=xxx
"""
return schedule()
return await schedule()
@router.get("/transfer", summary="文件整理统计", response_model=List[int])