Skip to content

Commit

Permalink
update acs endpoint switchpoint
Browse files Browse the repository at this point in the history
closes #68, closes #69
  • Loading branch information
fgregg committed Feb 9, 2019
1 parent e0e9d2e commit 30dbe14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion census/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class ACSClient(Client):

def _switch_endpoints(self, year):

if year > 2015:
if year > 2009:
self.endpoint_url = 'https://api.census.gov/data/%s/acs/%s'
self.definitions_url = 'https://api.census.gov/data/%s/acs/%s/variables.json'
self.definition_url = 'https://api.census.gov/data/%s/acs/%s/variables/%s.json'
Expand Down
2 changes: 1 addition & 1 deletion census/tests/test_census.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_la_canada_2015(self):
# 'La Ca\xf1ada Flintridge city, California'
self.assertEqual(
self._client.acs.get('NAME', geo=geo, year=2015)[0]['NAME'],
u'La Ca\xf1ada Flintridge city, California'
'La Ca?ada Flintridge city, California'
)


Expand Down

0 comments on commit 30dbe14

Please sign in to comment.