Correcao na regex CC -
This commit is contained in:
@@ -265,7 +265,7 @@ fn main() {
|
|||||||
// filename example is: CC - Erraoander Quintana - 515578 - 20251020515578.csv
|
// filename example is: CC - Erraoander Quintana - 515578 - 20251020515578.csv
|
||||||
// id talk is the last information, so in the example is: 20251020515578
|
// id talk is the last information, so in the example is: 20251020515578
|
||||||
let regex_filename =
|
let regex_filename =
|
||||||
regex::Regex::new(r"(CC - )((\w+\s*)+) - (\d+) - (\d+).csv").unwrap();
|
regex::Regex::new(r"(FIN - )((\w+\s*)+) - (\d+) - (\d+).csv").unwrap();
|
||||||
|
|
||||||
let filename = file_path_csv
|
let filename = file_path_csv
|
||||||
.file_name()
|
.file_name()
|
||||||
@@ -494,10 +494,10 @@ fn main() {
|
|||||||
std::path::Path::new(&format!("./groupped/{first_day_of_last_month}.zip")),
|
std::path::Path::new(&format!("./groupped/{first_day_of_last_month}.zip")),
|
||||||
);
|
);
|
||||||
|
|
||||||
let recipients = "Wilson da Conceição Oliveira <wilson.oliveira@nova.net.br>, nicolas.borges@nova.net.br>";
|
let recipients = "Wilson da Conceição Oliveira <wilson.oliveira@nova.net.br>, nicolas.borges@nova.net.br";
|
||||||
println!("Trying to send mail... {recipients}");
|
println!("Trying to send mail... {recipients}");
|
||||||
send_mail_util::send_mail_util::send_email(
|
send_mail_util::send_mail_util::send_email(
|
||||||
&format!("Relatório agrupado dos atendimentos da fila do Financenrio NVL2 do mês {first_day_of_last_month}"),
|
&format!("Relatório agrupado dos atendimentos da fila do Financeiro N2 do mês {first_day_of_last_month}"),
|
||||||
&BOT_EMAIL,
|
&BOT_EMAIL,
|
||||||
&BOT_EMAIL_PASSWORD,
|
&BOT_EMAIL_PASSWORD,
|
||||||
recipients,
|
recipients,
|
||||||
|
|||||||
@@ -256,10 +256,10 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parse id talk from file_path
|
// Parse id talk from file_path
|
||||||
// filename example is: CC - Erraoander Quintana - 515578 - 20251020515578.csv
|
// filename example is: FIN - Lais Mota - 515578 - 20251020515578.csv
|
||||||
// id talk is the last information, so in the example is: 20251020515578
|
// id talk is the last information, so in the example is: 20251020515578
|
||||||
let regex_filename =
|
let regex_filename =
|
||||||
regex::Regex::new(r"(CC - )((\w+\s*)+) - (\d+) - (\d+).csv").unwrap();
|
regex::Regex::new(r"(FIN - )((\s*\w+\s*)+) - (\d+) - (\d+).csv").unwrap();
|
||||||
|
|
||||||
let filename = file_path_csv
|
let filename = file_path_csv
|
||||||
.file_name()
|
.file_name()
|
||||||
@@ -479,11 +479,11 @@ fn main() {
|
|||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|
||||||
let recipients = "Wilson da Conceição Oliveira <wilson.oliveira@nova.net.br>, nicolas.borges@nova.net.br>";
|
let recipients = "Wilson da Conceição Oliveira <wilson.oliveira@nova.net.br>, nicolas.borges@nova.net.br";
|
||||||
println!("Trying to send mail... {recipients}");
|
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 da fila do Financeiro NVL2 da semana {first_day_of_last_week} - {last_day_of_last_week}"
|
"Relatório agrupado dos atendimentos da fila do Financeiro N2 - semana {first_day_of_last_week} - {last_day_of_last_week}"
|
||||||
),
|
),
|
||||||
&BOT_EMAIL,
|
&BOT_EMAIL,
|
||||||
&BOT_EMAIL_PASSWORD,
|
&BOT_EMAIL_PASSWORD,
|
||||||
|
|||||||
Reference in New Issue
Block a user