From 0aa94e5d8ffd4cd5f2832278bd167074562d673f Mon Sep 17 00:00:00 2001 From: Joseph Banks Date: Wed, 26 Dec 2018 09:38:12 +0000 Subject: Fix is_in_advent() function --- bot/seasons/christmas/adventofcode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bot/seasons/christmas/adventofcode.py') diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py index 458eb19f..f9ca9f01 100644 --- a/bot/seasons/christmas/adventofcode.py +++ b/bot/seasons/christmas/adventofcode.py @@ -29,7 +29,8 @@ def is_in_advent() -> bool: Utility function to check if we are between December 1st and December 25th. """ - return datetime.now(EST).day in range(1, 26) and datetime.now(EST).month == 12 + # Run the code from the 1st to the 24th + return datetime.now(EST).day in range(1, 25) and datetime.now(EST).month == 12 def time_left_to_aoc_midnight() -> Tuple[datetime, timedelta]: -- cgit v1.2.3