Skip to content

Commit

Permalink
Simplify determining providers.
Browse files Browse the repository at this point in the history
  • Loading branch information
koenedaele committed May 10, 2016
1 parent c1aad37 commit 6c2060c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyramid_skosprovider/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ def get_concepts(self):
subject = self.request.params.get('providers.subject', None)
if subject:
providers['subject'] = subject
if not (ids or subject):
concepts = self.skos_registry.find(query, language=language)
else:
concepts = self.skos_registry.find(query, providers=providers, language=language)
concepts = self.skos_registry.find(query, providers=providers, language=language)
# Flatten it all
cs = []
for c in concepts:
Expand Down

0 comments on commit 6c2060c

Please sign in to comment.