Skip to content

Commit 588fbf9

Browse files
authored
Merge pull request #1460 from atph/#1455-nlincs_datefix
fix #1455: remove ordinal indicators from bin collection date parsing
2 parents 292b53c + 4ea80c1 commit 588fbf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uk_bin_collection/uk_bin_collection/councils/NorthLincolnshireCouncil.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def parse_data(self, page: str, **kwargs) -> dict:
4646
"type": bin_type,
4747
"collectionDate": get_next_occurrence_from_day_month(
4848
datetime.strptime(
49-
c["BinCollectionDate"].replace(" (*)", "").strip()
49+
remove_ordinal_indicator_from_date_string(
50+
c["BinCollectionDate"].replace(" (*)", "").strip())
5051
+ " "
5152
+ datetime.now().strftime("%Y"),
5253
"%A %d %B %Y",

0 commit comments

Comments
 (0)