Fixed error
This commit is contained in:
2
main.py
2
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")
|
||||
|
||||
Reference in New Issue
Block a user