python – I am downloading two files using flask , How to start downloading duplicate file


**I coded for downloading file using file. I am getting downloaded file with duplication **

My code is below not exact.

file_path="c:/user/Download"
With pd.excelwriter(file_path) as writer:
     data1.to_excel(writer, sheet_name="something")
     data2.to_excel(writer, sheet_name="something 2")
return send_file(file_path, as_attachement=True)

So here I am return one download file and another file from excelwriter.

How to avoid to one duplicate file
Note: send_file return must needed.