Skip to content

Commit

Permalink
Merge pull request mycodeplug#36 from masenf/fix-repeaterbook-states-…
Browse files Browse the repository at this point in the history
…default

dzcb.repeaterbook: limit default states
  • Loading branch information
masenf authored Feb 6, 2021
2 parents 46047a8 + 4b1f6c7 commit 128bee2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dzcb/repeaterbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
REPEATERBOOK_API_DELAY = 30
REPEATERBOOK_LAST_FETCH = 0

# XXX: Repeaterbook API returns 3500 records per request,
# so limit the data to the area of interest. Eventually
# this list will be passed by JSON or CSV
REPEATERBOOK_DEFAULT_STATES = ("Washington","Oregon","Idaho","California","British Columbia")
# Limit default state to avoid unnecessary API hits
# Users will want to pass the state on the command line
# TODO: Geocode Lat/Long from the CSV file
REPEATERBOOK_DEFAULT_STATES = ("Washington","Oregon")
REPEATERBOOK_CACHE_MAX_AGE = 3600 * 12.1 # 12 hours (and some change)
CSV_ZONE_NAME = "Zone Name"
CSV_LAT = "Lat"
Expand Down

0 comments on commit 128bee2

Please sign in to comment.