diff --git a/src/parser/colles/upcoming.rs b/src/parser/colles/upcoming.rs index bb6f150..193b7b1 100644 --- a/src/parser/colles/upcoming.rs +++ b/src/parser/colles/upcoming.rs @@ -180,10 +180,10 @@ pub async fn fetch(session: &str, last_hash: &str) -> (Vec, String) { // Extract text using pdf_extract let pdf_text = pdf_extract::extract_text(tmpfile.path()).expect("Failed to extract PDF text"); - println!("{}", pdf_text); // Calculate the hash of the PDF file let hash = hash_text(&pdf_text); + // TODO: Fix hash not refetching on error // if hash == last_hash || pdf_text.contains("Aucune colle") { // return (Vec::new(), hash); // } diff --git a/src/parser/utils.rs b/src/parser/utils.rs index e954e18..a85ecbd 100644 --- a/src/parser/utils.rs +++ b/src/parser/utils.rs @@ -89,7 +89,6 @@ pub fn clean_content(content: &str) -> String { pub fn with_time(date: NaiveDate, time_str: &str) -> Result { // Replace 'h' with ':' to make parsing easier let clean_time = time_str.replace('h', ":"); - println!("TIME: {}", time_str); // Parse the time string into NaiveTime match NaiveTime::parse_from_str(&clean_time, "%H:%M") {