From a47077f10259293d39c33b8ad021d8861f3ea627 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sun, 3 Dec 2023 14:53:56 +0100 Subject: [PATCH] convey high/low hints if present --- src/tools/aoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/aoc.py b/src/tools/aoc.py index 3af50e0..6f539da 100644 --- a/src/tools/aoc.py +++ b/src/tools/aoc.py @@ -168,7 +168,7 @@ class AOCDay: "https://adventofcode.com/%d/day/%d#part2" % (self.year, self.day) ) elif "That's not the right answer" in message: - hilo = re.findall("was too (high|low)", message) + hilo = re.findall("your answer is too (high|low)", message) answer_cache[str_day][str_part]["wrong"].append(answer) print("That's WRONG%s!" % (f" (too {hilo[0]})" if hilo else "")) elif "You gave an answer too recently" in message: