From a93a84adadfe8b17065167118764e528d836a803 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 29 Oct 2023 15:50:30 +0000 Subject: [PATCH] Refactor --- agenda/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agenda/__init__.py b/agenda/__init__.py index 2f7f67b..21a0a0e 100644 --- a/agenda/__init__.py +++ b/agenda/__init__.py @@ -336,6 +336,7 @@ def windmill_hill_market_days(start_date: date) -> list[Event]: count = 0 tz = pytz.timezone("Europe/London") + t = time(10, 0) while count < 12: # Skip months outside of April to December @@ -353,7 +354,7 @@ def windmill_hill_market_days(start_date: date) -> list[Event]: Event( name="market", title="Windmill Hill Market", - date=tz.localize(datetime.combine(first_saturday, time(10, 0))), + date=tz.localize(datetime.combine(first_saturday, t)), ) ) count += 1