Skip to content

Commit

Permalink
update default year, closes #101
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Oct 13, 2021
1 parent 3217b62 commit dd4f171
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions census/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def get(self, *args, **kwargs):

class ACS5Client(ACSClient):

default_year = 2018
default_year = 2019
dataset = 'acs5'

years = (2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009)
Expand Down Expand Up @@ -347,7 +347,7 @@ def state_county_blockgroup(self, fields, state_fips, county_fips,
geo['in'] += ' tract:{}'.format(tract)
return self.get(fields, geo=geo, **kwargs)

@supported_years(2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011)
@supported_years(2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011)
def zipcode(self, fields, zcta, **kwargs):
warnings.warn(
"zipcode has been deprecated; use state_zipcode instead",
Expand All @@ -358,7 +358,7 @@ def zipcode(self, fields, zcta, **kwargs):

return self.state_zipcode(fields, state_fips, zcta, **kwargs)

@supported_years(2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011)
@supported_years(2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011)
def state_zipcode(self, fields, state_fips, zcta, **kwargs):
return self.get(fields, geo={
'for': 'zip code tabulation area:{}'.format(zcta),
Expand Down Expand Up @@ -404,7 +404,7 @@ class ACS3DpClient(ACS3Client):

class ACS1Client(ACSClient):

default_year = 2018
default_year = 2019
dataset = 'acs1'

years = (2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011)
Expand Down

0 comments on commit dd4f171

Please sign in to comment.