Skip to content

Commit

Permalink
Merge pull request #1161 from csogilvie/fix-south-oxfordshire-bin-type
Browse files Browse the repository at this point in the history
  • Loading branch information
robbrad authored Jan 13, 2025
2 parents c33ec96 + e3c0162 commit a612b08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def parse_data(self, page: str, **kwargs) -> dict:
"%A %d %B - %Y",
)
).strftime(date_format)
bin_type = str.capitalize(bin_info[1])
bin_type = str.capitalize(' '.join(bin_info[1:]))
# On exceptional collection schedule (e.g. around English Bank Holidays), date will be contained in the second stripped string
else:
bin_date = get_next_occurrence_from_day_month(
Expand All @@ -75,7 +75,7 @@ def parse_data(self, page: str, **kwargs) -> dict:
"%A %d %B - %Y",
)
).strftime(date_format)
bin_type = str.capitalize(bin_info[2])
str.capitalize(' '.join(bin_info[2:]))
except Exception as ex:
raise ValueError(f"Error parsing bin data: {ex}")

Expand Down

0 comments on commit a612b08

Please sign in to comment.