diff --git a/census/core.py b/census/core.py index 17dc64a..84f0a6d 100644 --- a/census/core.py +++ b/census/core.py @@ -564,7 +564,7 @@ def state_county_tract(self, fields, state_fips, 'in': 'state:{} county:{}'.format(state_fips, county_fips), }, **kwargs) - @supported_years() + @supported_years(2020, 2010) def state_county_blockgroup(self, fields, state_fips, county_fips, blockgroup, tract=None, **kwargs): geo = { @@ -575,6 +575,15 @@ def state_county_blockgroup(self, fields, state_fips, county_fips, geo['in'] += ' tract:{}'.format(tract) return self.get(fields, geo=geo, **kwargs) + @supported_years() + def state_county_block(self, fields, state_fips, county_fips, + tract, block, **kwargs): + return self.get(fields, geo={ + 'for': 'block:{}'.format(block), + 'in': 'state:{} county:{} tract:{}'.format( + state_fips, county_fips, tract), + }, **kwargs) + class Census(object):