debug: print pdf text

This commit is contained in:
Nathan 2025-09-12 19:49:34 +02:00
parent 6d4602368d
commit 6f5e732bc8

View file

@ -166,6 +166,7 @@ pub async fn fetch(session: &str, last_hash: &str) -> (Vec<Colle>, 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") {