fix: remove debug

This commit is contained in:
Nathan 2025-09-12 20:49:28 +02:00
parent 44e480f4f7
commit d41a57354c
2 changed files with 1 additions and 2 deletions

View file

@ -180,10 +180,10 @@ 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);
// TODO: Fix hash not refetching on error
// if hash == last_hash || pdf_text.contains("Aucune colle") {
// return (Vec::new(), hash);
// }

View file

@ -89,7 +89,6 @@ pub fn clean_content(content: &str) -> String {
pub fn with_time(date: NaiveDate, time_str: &str) -> Result<NaiveDateTime, String> {
// 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") {