Correcao na regex v2 + Alteracao das colunas para 8 sem/men; Alteracao no prompt de saniticacao

This commit is contained in:
2025-11-26 08:57:43 -03:00
parent 0f32909105
commit 79e87bff91
4 changed files with 508 additions and 21 deletions

View File

@@ -251,7 +251,7 @@ fn main() {
})
.collect_vec();
if columns.len() != 9 {
if columns.len() != 8 {
return None;
}
@@ -259,7 +259,8 @@ fn main() {
// filename example is: FIN - Lais Mota - 515578 - 20251020515578.csv
// id talk is the last information, so in the example is: 20251020515578
let regex_filename =
regex::Regex::new(r"(FIN - )((\s*\w+\s*)+) - (\d+) - (\d+).csv").unwrap();
//regex::Regex::new(r"(FIN - )((\s*\w+\s*)+) - (\d+) - (\d+).csv").unwrap();
regex::Regex::new(r"FIN - (.+?) - (\d+) - (\d+)\.csv").unwrap();
let filename = file_path_csv
.file_name()
@@ -270,10 +271,10 @@ fn main() {
.expect("Failed to do regex capture");
let user_name = found_regex_groups_in_filename
.get(2)
.get(1)
.expect("Failed to get the id from regex maches");
let talk_id = found_regex_groups_in_filename
.get(5)
.get(3)
.expect("Failed to get the id from regex maches");
let excelence_percentual = columns