From 08a4d4d2bbeade5dde3d9eb152329a0de40d4d8d Mon Sep 17 00:00:00 2001 From: DingZQ Date: Wed, 5 Feb 2025 15:16:11 +0800 Subject: [PATCH] Fixed error --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 74877cb..ffe54dc 100644 --- a/main.py +++ b/main.py @@ -1920,7 +1920,7 @@ async def upload_inp(afile: bytes, name: str ): return True @app.get("/downloadinp/", status_code=status.HTTP_200_OK) -async def download_name: str, response: Response): +async def download_inp(name: str, response: Response): filePath = inpDir + name if os.path.exists(filePath): return FileResponse(filePath, media_type='application/octet-stream', filename="inp.inp")