More support for offline_mode

This commit is contained in:
Edward Betts 2024-11-04 09:59:55 +00:00
parent 3c3939c525
commit 67b1adf956
4 changed files with 23 additions and 13 deletions

View file

@ -40,7 +40,10 @@ async def update_bristol_bins(config: flask.config.Config) -> None:
"""Update waste schedule from Bristol City Council."""
t0 = time()
events = await agenda.bristol_waste.get(
date.today(), config["DATA_DIR"], config["BRISTOL_UPRN"], refresh=True
date.today(),
config["DATA_DIR"],
config["BRISTOL_UPRN"],
cache="refresh",
)
time_taken = time() - t0
if not sys.stdin.isatty():