From fc791412a5508edf1fac95b3be192989674f341a Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 12 Sep 2025 19:54:24 +0200 Subject: [PATCH] fix: remove hash check to refetch on failure --- src/parser/colles/upcoming.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser/colles/upcoming.rs b/src/parser/colles/upcoming.rs index 7a8d22d..a823490 100644 --- a/src/parser/colles/upcoming.rs +++ b/src/parser/colles/upcoming.rs @@ -166,12 +166,12 @@ 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); - if hash == last_hash || pdf_text.contains("Aucune colle") { - return (Vec::new(), hash); - } + // if hash == last_hash || pdf_text.contains("Aucune colle") { + // return (Vec::new(), hash); + // } // Split the text into lines and filter out empty lines let lines: Vec<&str> = pdf_text