Skip to content

Commit 7209da2

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
2 parents a96b6b8 + fdbd2d8 commit 7209da2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

regcensus/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ def get_values(series, jurisdiction, year, documentType=1, summary=True,
157157
url_call += f'&labelLevel={labellevel}'
158158

159159
# If multiple years are given, parses the list into a string
160+
if not summary and type(year) == list:
161+
print(
162+
'WARNING: document-level data is only returnable for a single '
163+
'year at a time. Returning the first year requested.'
164+
)
165+
year = year[0]
160166
if type(year) == list:
161167
# If dateIsRange, parses the list to include all years
162168
if dateIsRange and len(year) == 2:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='regcensus',
7-
version='1.0.0',
7+
version='1.0.1',
88
description='Python package for accessing data from the QuantGov API',
99
url='https://github.com/QuantGov/regcensus-api-python',
1010
author='QuantGov',

0 commit comments

Comments
 (0)