From 4f2b9f7fae73004b3dc0417b8bb4b0eddd4b9250 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 5 Nov 2023 15:01:10 +0000 Subject: [PATCH] Bug fix --- agenda/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/agenda/__init__.py b/agenda/__init__.py index dca1040..ad0cf1e 100644 --- a/agenda/__init__.py +++ b/agenda/__init__.py @@ -295,6 +295,7 @@ async def get_data(now: datetime) -> typing.Mapping[str, str | object]: today = now.date() last_week = today - timedelta(weeks=1) last_year = today - timedelta(days=365) + next_year = today + timedelta(days=365) ( gbpusd, @@ -325,9 +326,9 @@ async def get_data(now: datetime) -> typing.Mapping[str, str | object]: "gwr_advance_tickets": gwr_advance_tickets, "critical_mass": critical_mass(today), "market": ( - markets.windmill_hill(last_year) - + markets.tobacco_factory(last_year) - + markets.nailsea_farmers(last_year) + markets.windmill_hill(last_year, next_year) + + markets.tobacco_factory(last_year, next_year) + + markets.nailsea_farmers(last_year, next_year) ), "rockets": rockets, }