Skip to content

Commit 3d61149

Browse files
authored
0.4.3 (#24)
* adjustments for v3 of the API * live url * v0.4.0 * working tests and fix to industryLevel * allow multiple dates in get_documents() * list_dates allow doctype * 0.4.3
1 parent 131abaa commit 3d61149

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

regcensus/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,14 @@ def list_series(jurisdictionID=None, documentType=None):
343343
for s in json}.items()))
344344

345345

346-
def list_dates(jurisdictionID, verbose=0):
346+
def list_dates(jurisdictionID, documentType=None, verbose=0):
347347
"""
348348
Args: jurisdictionID: ID for the jurisdiction
349349
350350
Returns: list of dates available for the jurisdiction
351351
"""
352352
return sorted(get_periods(
353-
jurisdictionID, verbose=verbose)['periodCode'].unique())
353+
jurisdictionID, documentType, verbose=verbose)['periodCode'].unique())
354354

355355

356356
def list_agencies(jurisdictionID=None, keyword=None):

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='0.4.2',
7+
version='0.4.3',
88
description='Python package for accessing data from the QuantGov API',
99
url='https://github.com/QuantGov/regcensus-api-python',
1010
author='QuantGov',

tests/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def test_get_values_all_agencies():
242242
)
243243
assert order_results(results, 'seriesValue') == [
244244
0.0, 1.0, 1.0, 2.0, 2.0, 2.0, 4.0, 4.0, 5.0, 5.0
245+
]
245246

246247

247248
def test_get_values_multiple_agencies():

0 commit comments

Comments
 (0)