From 217944d106054445806c2cbc6b3a4c2a16e5f434 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sat, 2 Dec 2023 02:11:03 +0000 Subject: [PATCH] fix: this is 2023, don't download last year's inputs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 586c5bc..ccf56de 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ pub fn fetch_input(day: u8) -> Result { 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()?;