diff --git a/uk_bin_collection/uk_bin_collection/councils/SouthOxfordshireCouncil.py b/uk_bin_collection/uk_bin_collection/councils/SouthOxfordshireCouncil.py index e7491520af..3d368616be 100644 --- a/uk_bin_collection/uk_bin_collection/councils/SouthOxfordshireCouncil.py +++ b/uk_bin_collection/uk_bin_collection/councils/SouthOxfordshireCouncil.py @@ -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( @@ -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}")