diff --git a/HISTORY.rst b/HISTORY.rst index dd969a5..8de0f2c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,3 +1,8 @@ +0.4.2 (2016-02-22) +------------------ + +- Update to latest version of services. + 0.4.1 (2015-03-02) ------------------ diff --git a/setup.py b/setup.py index fc9938f..3c64149 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( name='skosprovider_oe', - version='0.4.1', + version='0.4.2', description='A SKOS provider for OE vocabularies.', long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), diff --git a/skosprovider_oe/providers.py b/skosprovider_oe/providers.py index 4ff6a16..987d3dc 100644 --- a/skosprovider_oe/providers.py +++ b/skosprovider_oe/providers.py @@ -173,7 +173,7 @@ def get_top_concepts(self, **kwargs): args = {'type[]': ['HR']} r = self.session.get(url, params=args) result = r.json() - items = result['items'] + items = result top = self.get_by_id(items[0]['id']) res = [] def expand_coll(res, coll): @@ -202,7 +202,7 @@ def _do_query(self, query=None): args['term'] = query['label'] r = self.session.get(url, params=args) result = r.json() - items = result['items'] + items = result if query is not None and 'collection' in query: #Restrict results to element of collection coll = self.get_by_id(query['collection']['id']) @@ -251,7 +251,7 @@ def get_top_display(self, **kwargs): args = {'type[]': ['HR']} r = self.session.get(url, params=args) result = r.json() - items = result['items'] + items = result top = self.get_by_id(items[0]['id']) res = [] def expand_coll(res, coll):