Skip to content

Commit

Permalink
Merge 192c90d into f8e89f1
Browse files Browse the repository at this point in the history
  • Loading branch information
vancamti committed Feb 9, 2021
2 parents f8e89f1 + 192c90d commit 4584922
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion skosprovider_atramhasis/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, metadata, **kwargs):
if 'subject' not in metadata:
metadata['subject'] = []
self.metadata = metadata
self._conceptscheme = None
self.allowed_instance_scopes = kwargs.get(
'allowed_instance_scopes',
['single', 'threaded_thread']
Expand Down Expand Up @@ -83,7 +84,9 @@ def __init__(self, metadata, **kwargs):

@property
def concept_scheme(self):
return self._get_concept_scheme()
if self._conceptscheme is None:
self._conceptscheme = self._get_concept_scheme()
return self._conceptscheme

def _get_concept_scheme(self):
request = f'{self.base_url}/conceptschemes/{self.scheme_id}'
Expand Down

0 comments on commit 4584922

Please sign in to comment.