Skip to content

Commit

Permalink
fix: London Borough Sutton
Browse files Browse the repository at this point in the history
fix: robbrad#1076
(cherry picked from commit 1eab20c)
  • Loading branch information
m26dvd authored and dp247 committed Dec 17, 2024
1 parent f057564 commit b72faca
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,18 @@ def parse_data(self, page: str, **kwargs) -> dict:
bin_type = service.get_text(
strip=True
) # Bin type name (e.g., 'Food waste', 'Mixed recycling')
if bin_type == "Bulky waste":
if bin_type == "Bulky Waste":
continue
service_details = service.find_next("div", class_="govuk-grid-row")

next_collection = (
service_details.find("dt", string="Next collection")
.find_next_sibling("dd")
.get_text(strip=True)
(
service_details.find("dt", string="Next collection")
.find_next_sibling("dd")
.get_text(strip=True)
)
.replace("(this collection has been adjusted from its usual time)", "")
.strip()
)

next_collection = datetime.strptime(
Expand Down

0 comments on commit b72faca

Please sign in to comment.