Skip to content

Commit

Permalink
revert excluded_class_iris
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 17, 2023
1 parent 0ed45d4 commit 3df5b5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions dsp_permissions_scripts/scenario-tanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,10 @@ def update_oaps(
shortcode: str,
token: str,
) -> None:
excluded_class_iris = [
f"http://{host}/ontology/0102/scenario-tanner/v2#Document",
f"http://{host}/ontology/0102/scenario-tanner/v2#Page",
f"http://{host}/ontology/0102/scenario-tanner/v2#CriticalReception",
f"http://{host}/ontology/0102/scenario-tanner/v2#Person",
] if "stage" in host else []
resource_oaps = get_all_resource_oaps_of_project(
shortcode=shortcode,
host=host,
token=token,
excluded_class_iris=excluded_class_iris,
)
serialize_resource_oaps(
resource_oaps=resource_oaps,
Expand All @@ -138,7 +131,6 @@ def update_oaps(
shortcode=shortcode,
host=host,
token=token,
excluded_class_iris=excluded_class_iris,
)
serialize_resource_oaps(
resource_oaps=resource_oaps_updated,
Expand Down
2 changes: 0 additions & 2 deletions dsp_permissions_scripts/utils/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def get_all_resource_oaps_of_project(
shortcode: str,
host: str,
token: str,
excluded_class_iris: Iterable[str] = (),
) -> list[Oap]:
logger.info(f"******* Getting all resource OAPs of project {shortcode} *******")
print(f"******* Getting all resource OAPs of project {shortcode} *******")
Expand All @@ -169,7 +168,6 @@ def get_all_resource_oaps_of_project(
host=host,
token=token,
)
resclass_iris = [x for x in resclass_iris if x not in excluded_class_iris]
for resclass_iri in resclass_iris:
resource_oaps = _get_all_resource_oaps_of_resclass(
host=host,
Expand Down

0 comments on commit 3df5b5b

Please sign in to comment.