Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix errors due to change in services.
Browse files Browse the repository at this point in the history
  • Loading branch information
koenedaele committed Feb 22, 2016
1 parent d05ef69 commit 7f076bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.4.2 (2016-02-22)
------------------

- Update to latest version of services.

0.4.1 (2015-03-02)
------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
6 changes: 3 additions & 3 deletions skosprovider_oe/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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'])
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 7f076bc

Please sign in to comment.