Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Apr 17, 2024
1 parent 785513a commit 862d59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsp_permissions_scripts/oap/oap_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
logger = get_logger(__name__)


def _get_all_resource_oaps_of_resclass(resclass_iri: str, project_iri: str, dsp_client: DspClient) -> list[Oap]:
def _get_all_oaps_of_resclass(resclass_iri: str, project_iri: str, dsp_client: DspClient) -> list[Oap]:
logger.info(f"Getting all resource OAPs of class {resclass_iri}...")
headers = {"X-Knora-Accept-Project": project_iri}
all_oaps: list[Oap] = []
Expand Down Expand Up @@ -103,7 +103,7 @@ def get_all_resource_oaps_of_project(
resclass_iris = [x for x in resclass_iris if x not in excluded_class_iris]
all_oaps = []
for resclass_iri in resclass_iris:
oaps = _get_all_resource_oaps_of_resclass(resclass_iri, project_iri, dsp_client)
oaps = _get_all_oaps_of_resclass(resclass_iri, project_iri, dsp_client)
all_oaps.extend(oaps)
logger.info(f"Retrieved a TOTAL of {len(all_oaps)} OAPs")
return all_oaps

0 comments on commit 862d59f

Please sign in to comment.