fix: filename extension
This commit is contained in:
@@ -345,7 +345,7 @@ fn main() {
|
|||||||
Some(mut val) => {
|
Some(mut val) => {
|
||||||
val.iter_mut().for_each(|(agent, groupped_evaluations)| {
|
val.iter_mut().for_each(|(agent, groupped_evaluations)| {
|
||||||
let mut save_file_csv = std::fs::File::create(format!(
|
let mut save_file_csv = std::fs::File::create(format!(
|
||||||
"./groupped/{first_day_of_last_week} - {last_day_of_last_week}/{agent}"
|
"./groupped/{first_day_of_last_week} - {last_day_of_last_week}/{agent}.csv"
|
||||||
))
|
))
|
||||||
.expect("Could not create csv file for saving");
|
.expect("Could not create csv file for saving");
|
||||||
CsvWriter::new(&mut save_file_csv)
|
CsvWriter::new(&mut save_file_csv)
|
||||||
@@ -368,6 +368,7 @@ fn main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let recipients = "Wilson da Conceição Oliveira <wilson.oliveira@nova.net.br>, Isadora G. Moura de Moura <isadora.moura@nova.net.br>";
|
let recipients = "Wilson da Conceição Oliveira <wilson.oliveira@nova.net.br>, Isadora G. Moura de Moura <isadora.moura@nova.net.br>";
|
||||||
|
println!("Trying to send mail... {recipients}");
|
||||||
send_mail_util::send_mail_util::send_email(
|
send_mail_util::send_mail_util::send_email(
|
||||||
&format!(
|
&format!(
|
||||||
"Relatório agrupado dos atendimentos semana {first_day_of_last_week} - {last_day_of_last_week}"
|
"Relatório agrupado dos atendimentos semana {first_day_of_last_week} - {last_day_of_last_week}"
|
||||||
|
|||||||
Reference in New Issue
Block a user