More support for offline_mode
This commit is contained in:
parent
3c3939c525
commit
67b1adf956
4 changed files with 23 additions and 13 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue