From 450c608c1a9bbee3ea15e9fe664e830c01cdef24 Mon Sep 17 00:00:00 2001 From: Ffaen Date: Fri, 27 Dec 2024 14:35:18 +0000 Subject: [PATCH] Fix Monmouthshire collection new line error --- .../uk_bin_collection/councils/MonmouthshireCountyCouncil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uk_bin_collection/uk_bin_collection/councils/MonmouthshireCountyCouncil.py b/uk_bin_collection/uk_bin_collection/councils/MonmouthshireCountyCouncil.py index 2cefb977ce..a61b93aa84 100644 --- a/uk_bin_collection/uk_bin_collection/councils/MonmouthshireCountyCouncil.py +++ b/uk_bin_collection/uk_bin_collection/councils/MonmouthshireCountyCouncil.py @@ -43,7 +43,7 @@ def parse_data(self, page: str, **kwargs) -> dict: # Extract collection date (e.g., "Monday 9th December") date_tag = panel.find("p") - if date_tag and "Your next collection date is" in date_tag.text: + if date_tag and "Your next collection date is" in date_tag.text.strip().replace("\r", "").replace("\n", ""): collection_date = date_tag.find("strong").text.strip() else: continue