Skip to content

Commit

Permalink
fix: Merton UK has changed the format of the dates (mampfes#3290)
Browse files Browse the repository at this point in the history
* fix: Merton UK has changed the format of the dates

Also updated the test cases as they don't seem to be valid IDs any
more.

* reformatting + fixing old typo

---------

Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
  • Loading branch information
robertmarsal and 5ila5 authored Dec 26, 2024
1 parent 6d640e5 commit db06cd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit db06cd0

Please sign in to comment.