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.
This commit is contained in:
parent
319844e55c
commit
e50dc7a9d4
2
app.py
2
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user