Skip to content

Commit

Permalink
Update source template
Browse files Browse the repository at this point in the history
  • Loading branch information
dala318 committed Oct 28, 2024
1 parent ede189e commit 68f4a91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions doc/contributing_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The script should have the following general structure
```py
import datetime
from waste_collection_schedule import Collection
from const import Icons

TITLE = "My Council" # Title will show up in README.md and info.md
DESCRIPTION = "Source script for abc.com" # Describe your source
Expand All @@ -33,10 +34,10 @@ TEST_CASES = { # Insert arguments for test cases to be used by test_sources.py
}

API_URL = "https://abc.com/search/"
ICON_MAP = { # Optional: Dict of waste types and suitable mdi icons
"DOMESTIC": "mdi:trash-can",
"RECYCLE": "mdi:recycle",
"ORGANIC": "mdi:leaf",
ICON_MAP = { # Optional: Dict of waste types and suitable icons
"DOMESTIC": Icons.ICON_GENERAL_TRASH,
"RECYCLE": Icons.ICON_RECYCLE,
"ORGANIC": Icond.ICON_COMPOST,
}

#### Arguments affecting the configuration GUI ####
Expand Down
3 changes: 1 addition & 2 deletions script/check_icon_use.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

verbose=false
verbose=true
if [ "$1" == "-v" ]
then
verbose=true
Expand All @@ -25,7 +25,6 @@ whitelist=(
"aha_region_de.py"
"ahe_de.py"
"alchenstorf_ch.py"
"aliaserviziambientali_it.py"
"allerdale_gov_uk.py"
"ambervalley_gov_uk.py"
"antrimandnewtownabbey_gov_uk.py"
Expand Down

0 comments on commit 68f4a91

Please sign in to comment.