Skip to content

Commit

Permalink
Don't map oxford council colleciton type names
Browse files Browse the repository at this point in the history
This can be set up by the user in their configuration if they want to.
  • Loading branch information
rbrunt committed Jan 25, 2023
1 parent 75716cc commit 36d7e3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
"Garden": "mdi:leaf",
"Food": "mdi:food-apple",
}
NAME_MAP = {
"Refuse": "Green Rubbish Bin",
"Recycling": "Blue Recycling Bin",
"Garden": "Brown Garden Waste Bin",
"Food": "Food Waste Caddy",
}

class Source:
def __init__(self, uprn:str, postcode:str):
Expand Down Expand Up @@ -62,7 +56,7 @@ def fetch(self):
entries.append(
Collection(
date=datetime.strptime(date_string, "%A %d %B %Y").date(),
t=NAME_MAP[collection_type],
t=collection_type,
icon=ICON_MAP[collection_type]
)
)
Expand Down
8 changes: 4 additions & 4 deletions doc/source/oxford_gov_uk.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ If you don't subscribe to a brown garden waste bin, we don't return data for it.
## Returned collection types
### Green Rubbish Bin
### Refuse
Green Bin for general waste
### Blue Recycling Bin
### Recycling
Blue Bin for mixed recycling
### Brown Garden Waste Bin
### Garden
Brown Bin for garden waste.
If you don't pay for a garden waste bin, it won't be included.
### Food Waste Caddy
### Food
Green Caddy for food waste.

0 comments on commit 36d7e3d

Please sign in to comment.