diff --git a/src/main.rs b/src/main.rs index 9265192..e46cfbf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -208,19 +208,19 @@ async fn handle_scrape_write_to_file() -> Result<(), Box> { async fn handle_batch_insert() -> Result<(), Box> { println!("Handling batch insert..."); - if !Path::new("courses.txt").is_file() { + if !Path::new("courses.json").is_file() { return Err(Box::new(std::io::Error::new( ErrorKind::NotFound, "courses.json doesn't exist, please run cargo r -- scrape".to_string(), ))); } - if !Path::new("classes.txt").is_file() { + if !Path::new("classes.json").is_file() { return Err(Box::new(std::io::Error::new( ErrorKind::NotFound, "classes.json doesn't exist, please run cargo r -- scrape".to_string(), ))); } - if !Path::new("times.txt").is_file() { + if !Path::new("times.json").is_file() { return Err(Box::new(std::io::Error::new( ErrorKind::NotFound, "times.json doesn't exist, please run cargo r -- scrape".to_string(),