Split waste_schedule.py in two
This commit is contained in:
parent
17eca6a95a
commit
0f3f596cb3
5 changed files with 107 additions and 93 deletions
|
|
@ -13,6 +13,7 @@ import deepdiff # type: ignore
|
|||
import flask
|
||||
import requests
|
||||
|
||||
import agenda.bristol_waste
|
||||
import agenda.fx
|
||||
import agenda.geomob
|
||||
import agenda.gwr
|
||||
|
|
@ -20,7 +21,6 @@ import agenda.mail
|
|||
import agenda.thespacedevs
|
||||
import agenda.types
|
||||
import agenda.uk_holiday
|
||||
import agenda.waste_schedule
|
||||
from agenda.types import StrDict
|
||||
from web_view import app
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ async def update_bank_holidays(config: flask.config.Config) -> None:
|
|||
async def update_bristol_bins(config: flask.config.Config) -> None:
|
||||
"""Update waste schedule from Bristol City Council."""
|
||||
t0 = time()
|
||||
events = await agenda.waste_schedule.get_bristol_gov_uk(
|
||||
events = await agenda.bristol_waste.get_bristol_gov_uk(
|
||||
date.today(), config["DATA_DIR"], config["BRISTOL_UPRN"], refresh=True
|
||||
)
|
||||
time_taken = time() - t0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue