Skip to content

Commit

Permalink
Merge pull request #7 from mtna/alpha-0.1.1
Browse files Browse the repository at this point in the history
Alpha 0.1.1
  • Loading branch information
smlucas1993 committed May 18, 2020
2 parents 7521e59 + 912a8c6 commit e1badc7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
# v0.1.1 (2020-5-18)
Bug fix.
## Fixed
- Code metadata retrieval

# v0.1.0 (2020-5-15)
Initial commit.
## Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ RDS greatly simplifies the long process finding the data to begin with, cleaning
- [License](#license)

## Announcements
### Version v0.1.0 released
### Version v0.1.1 released
The initial version of **RDS** Python allows you to take advantage of our powerful database framework through its select queries, tabulation queries, and metadata retrieval. All features for our query system are available through this python API.
{release date}

Expand Down
11 changes: 9 additions & 2 deletions rds/dataproduct.py
Expand Up @@ -9,7 +9,7 @@
import urllib
import json

__version__ = "0.1.0"
__version__ = "0.1.1"
__author__ = "Metadata Technology North America Inc."
__email__ = "mtna@mtna.us"
__maintainer__ = "Sean Lucas"
Expand Down Expand Up @@ -261,7 +261,14 @@ def code(self, classification, limit=20):
api_call = (
self._get_url("catalog") + "/classification/" + classification + "/codes?"
)
api_call += self._get_param(limit, "limit")
params = {}
params.update(self._get_param(limit, "limit"))

# must use different methods depending on python version 3.X vs 2.X
if sys.version_info > (3, 0):
api_call += urllib.parse.urlencode(params)
else:
api_call += urllib.urlencode(params)

response = _get_response(api_call)
return json.load(response)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="mtna-rds",
version="0.1.0",
version="0.1.1",
author="Metadata Technology North America Inc.",
author_email="mtna@mtna.us",
description="A library to query the Rich Data Services API framework developed by MTNA",
Expand Down

0 comments on commit e1badc7

Please sign in to comment.