Fixed error

This commit is contained in:
DingZQ
2025-02-05 15:16:11 +08:00
parent 15b560dca4
commit 08a4d4d2bb

View File

@@ -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")