changes 下载报告

This commit is contained in:
P3ngSaM 2023-02-23 14:57:14 +08:00
parent de9c4b68ad
commit 2eea5a2580
1 changed files with 1 additions and 1 deletions

View File

@ -689,7 +689,7 @@ def func(schemas: ReportSchemas.SearchReportFlowReqBody, db: Session = Depends(g
myfile.write(result)
task = BackgroundTask(del_file, file_path)
response = FileResponse(file_path, filename=file,
media_type='application/vnd.openxmlformats-officedocument.wordprocessingml.document',
media_type='application/octet-stream',
background=task)
return response