From e3c016204614ab60935b781b7ec670f7a41294c0 Mon Sep 17 00:00:00 2001 From: Colin Ogilvie Date: Mon, 13 Jan 2025 18:06:02 +0000 Subject: [PATCH] fix: Update bin type to be the full string --- .../uk_bin_collection/councils/SouthOxfordshireCouncil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}")