Skip to content

Commit

Permalink
Merge pull request #1104 from ffaen/master
Browse files Browse the repository at this point in the history
Fix Monmouthshire collection new line error
  • Loading branch information
robbrad authored Jan 4, 2025
2 parents b77b669 + 450c608 commit 3a44818
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a44818

Please sign in to comment.