Skip to content

Commit

Permalink
Normalize config section name SUNLIGHT -> CALL_SUNLIGHT
Browse files Browse the repository at this point in the history
  • Loading branch information
mwleeds committed Jul 14, 2015
1 parent 42489da commit ec8abb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions utils/CallSunlightAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class CallSunlightAPI:
def __init__(self, config_file):
self.config = configparser.ConfigParser()
self.config.read(config_file)
self.state_code = self.config['SUNLIGHT']['STATE_CODE']
self.pretty_print = self.config['SUNLIGHT']['PRETTY_PRINT']
self.data_dir = self.config['SUNLIGHT']['DATA_DIR']
self.state_code = self.config['CALL_SUNLIGHT']['STATE_CODE']
self.pretty_print = self.config['CALL_SUNLIGHT']['PRETTY_PRINT']
self.data_dir = self.config['CALL_SUNLIGHT']['DATA_DIR']
self.parties_file = self.config['GENERATE_PARTIES']['OUTFILE']

def fetchData(self):
Expand Down
7 changes: 4 additions & 3 deletions utils/config-template.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ BASE_URL_OSM = http://open.mapquestapi.com/nominatim/v1/search.php?
BAD_ADDRESSES = ["NOT KNOWN", "PO BOX", "P.O. BOX", "P O BOX", "P. O. BOX", "P.O.BOX", "POST OFFICE BOX"]
VERBOSE = False

[CALL_SUNLIGHT]
STATE_CODE = AL

[SEND_TO_SOCRATA]
HASHES_FILE = FileHashes.json
API_DOMAIN = https://brigades.opendatanetwork.com
Expand All @@ -71,7 +74,5 @@ DISTRICTS_ID = p8kt-epji
TRANSACTEES_ID = 9xmj-xdkh
TRANSACTIONS_ID = vcap-yyfq

[SUNLIGHT]
STATE_CODE = AL

[COMPARE_YEARS]

0 comments on commit ec8abb8

Please sign in to comment.