This commit is contained in:
Edward Betts 2023-11-05 15:01:10 +00:00
parent 5693b2522f
commit 4f2b9f7fae

View file

@ -295,6 +295,7 @@ async def get_data(now: datetime) -> typing.Mapping[str, str | object]:
today = now.date() today = now.date()
last_week = today - timedelta(weeks=1) last_week = today - timedelta(weeks=1)
last_year = today - timedelta(days=365) last_year = today - timedelta(days=365)
next_year = today + timedelta(days=365)
( (
gbpusd, gbpusd,
@ -325,9 +326,9 @@ async def get_data(now: datetime) -> typing.Mapping[str, str | object]:
"gwr_advance_tickets": gwr_advance_tickets, "gwr_advance_tickets": gwr_advance_tickets,
"critical_mass": critical_mass(today), "critical_mass": critical_mass(today),
"market": ( "market": (
markets.windmill_hill(last_year) markets.windmill_hill(last_year, next_year)
+ markets.tobacco_factory(last_year) + markets.tobacco_factory(last_year, next_year)
+ markets.nailsea_farmers(last_year) + markets.nailsea_farmers(last_year, next_year)
), ),
"rockets": rockets, "rockets": rockets,
} }