From e50dc7a9d4bb38749a4f39690885fed950af24de Mon Sep 17 00:00:00 2001 From: mxr612 Date: Mon, 16 Jun 2025 10:23:44 +0800 Subject: [PATCH] fix: remove token parameter from download_scale_results endpoint - Updated the download_scale_results function to eliminate the token parameter, simplifying the endpoint's signature. - This change enhances clarity and aligns with the current requirements for accessing scale results. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 43a2051..e4b68e7 100644 --- a/app.py +++ b/app.py @@ -155,7 +155,7 @@ async def result(request: Request, scale_id: str, db: Session = Depends(get_db)) raise HTTPException(status_code=404, detail="问卷未找到") @app.get("/download/{scale_id}") -async def download_scale_results(scale_id: str, token: str, db: Session = Depends(get_db)): +async def download_scale_results(scale_id: str, db: Session = Depends(get_db)): if scale_id == "database": public_path = os.path.join("psychoscales.db")