From 033b0cf028a44cb4f1f5c2666c2c774ee5fd66b7 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 25 Feb 2026 23:18:42 -0500 Subject: [PATCH] Correct call to get current year --- util/scrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/scrape.py b/util/scrape.py index 3e7c1c4..e4ef3e1 100644 --- a/util/scrape.py +++ b/util/scrape.py @@ -12,7 +12,7 @@ from bs4 import BeautifulSoup load_dotenv() -def scrape_game_history(game: str, year: int | None) -> dict: +def scrape_game_history(game: str, year: int | None = None) -> dict: """ Scrape game data from the url provided. This function requires specific environment variables be present in order to function properly. @@ -31,7 +31,7 @@ def scrape_game_history(game: str, year: int | None) -> dict: drawings = {} if year is None: - year = utils.now().year + year = utils.today().year url = f"{os.getenv('BASE_SCRAPE_URL')}{game}/numbers/{year}" page = httpx.get(url)