Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Merton UK has changed the format of the dates #3290

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
URL = "https://www.merton.gov.uk/"

TEST_CASES = {
"test 1": {"property": "28186366"},
"test 2": {"property": "28166100"},
"test 1": {"property": "25884617"},
"test 2": {"property": "25861170"},
}

API_URL = "https://myneighbourhood.merton.gov.uk/Wasteservices/WasteServices.aspx"
Expand Down Expand Up @@ -66,7 +66,7 @@ def fetch(self):
# Add data to the main JSON Wrapper
entries.append(
Collection(
date=datetime.strptime(collectionDate, "%d %B %Y").date(),
date=datetime.strptime(collectionDate, "%A %d %B %Y").date(),
t=title,
icon=ICON_MAP.get(title),
)
Expand Down
2 changes: 1 addition & 1 deletion doc/source/merton_gov_uk.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Unique number the London Borough of Merton uses to identify your property.

#### How to find your `PROPERTY_ID`

Serach for your waste collection schedule at (https://myneighbourhood.merton.gov.uk/Wasteservices/WasteServicesSearch.aspx). Your `PROPERTY_ID` is the set of numbers at the end of the url when your schedule is being displayed.
Search for your waste collection schedule at (https://myneighbourhood.merton.gov.uk/Wasteservices/WasteServicesSearch.aspx). Your `PROPERTY_ID` is the set of numbers at the end of the url when your schedule is being displayed.

For example: myneighbourhood.merton.gov.uk/Wasteservices/WasteServices.aspx?ID=`28166109`

Expand Down