Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 28, 2024
1 parent 6db2fda commit cbbb53d
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions dsp_permissions_scripts/limc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,13 @@ def update_doaps(shortcode: str, dsp_client: DspClient) -> None:
for doap in project_doaps:
_delete_doap_on_server(doap, dsp_client)
logger.info(f"Deleted DOAP {doap.doap_iri}")
_ = create_new_doap_on_server(
target=NewGroupDoapTarget(group=PROJECT_ADMIN),
shortcode=shortcode,
scope=LIMC_OPEN,
dsp_client=dsp_client,
)
_ = create_new_doap_on_server(
target=NewGroupDoapTarget(group=group_builder("limc:limc-editors")),
shortcode=shortcode,
scope=LIMC_OPEN,
dsp_client=dsp_client,
)
for target in [PROJECT_ADMIN, group_builder("limc:limc-editors")]:
_ = create_new_doap_on_server(
target=NewGroupDoapTarget(group=target),
shortcode=shortcode,
scope=LIMC_OPEN,
dsp_client=dsp_client,
)
project_doaps_updated = get_doaps_of_project(shortcode, dsp_client)
serialize_doaps_of_project(
project_doaps=project_doaps_updated,
Expand Down

0 comments on commit cbbb53d

Please sign in to comment.