fix: this is 2023, don't download last year's inputs

This commit is contained in:
Ashhhleyyy 2023-12-02 02:11:03 +00:00
parent 19a1f7e4fc
commit 217944d106
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -27,7 +27,7 @@ pub fn fetch_input(day: u8) -> Result<String> {
std::fs::read_to_string(cache).map_err(|e| eyre!("failed to read input cache: {e}"))
} else {
println!("miss! fetching input for day {day}");
let body: String = ureq::get(&format!("https://adventofcode.com/2022/day/{day}/input"))
let body: String = ureq::get(&format!("https://adventofcode.com/2023/day/{day}/input"))
.set("Cookie", AOC_SESSION_COOKIE)
.call()?
.into_string()?;