aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2018-12-26 09:38:12 +0000
committerGravatar Joseph Banks <[email protected]>2018-12-26 09:38:12 +0000
commit0aa94e5d8ffd4cd5f2832278bd167074562d673f (patch)
tree3bafaa9802eba2d3d84ce93027a8cc86057a2c2c
parentMerge pull request #88 from scragly/si_2 (diff)
Fix is_in_advent() function
-rw-r--r--bot/seasons/christmas/adventofcode.py3
1 files changed, 2 insertions, 1 deletions
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]: