Changed file names and added a valid test uprn

This commit is contained in:
Oskar Annas
2023-01-25 15:47:26 +01:00
parent 9ecd696ea7
commit 45681be49b
2 changed files with 4 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ TITLE = "Region Gotland"
DESCRIPTION = "Source for Region Gotland waste collection."
URL = "https://gotland.se"
TEST_CASES = {
"Dummy": {"uprn": "0000000000"},
"TestService": {"uprn": "16903059805"},
}
ICON_MAP = {
@@ -29,6 +29,9 @@ class Source:
entries = []
for item in data["RhServices"]:
if item["WasteType"] == "Slam":
continue
next_pickup = item["NextWastePickup"]
next_pickup_date = datetime.fromisoformat(next_pickup).date()
waste_type = item["WasteType"]