I think that you have the excel file name and the excel file content swapped. Similarly with the CSV file.
attach_files = {
'excel_file': excel_file1,
'file_name': out,
'csv_file': csv_file1,
'file_names': data,
}
Should be:
attach_files = {
'excel_file': out,
'file_name': excel_file1,
'csv_file': data,
'file_names': csv_file1,
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…