From b95838dcd3949f10f878d234d086e3f9ffd6745d Mon Sep 17 00:00:00 2001 From: Johannes Nussbaum Date: Mon, 2 Oct 2023 10:39:42 +0200 Subject: [PATCH] improve parameter naming in update_doap_scope() --- dsp_permissions_scripts/utils/permissions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsp_permissions_scripts/utils/permissions.py b/dsp_permissions_scripts/utils/permissions.py index 07d46117..ca6d79df 100644 --- a/dsp_permissions_scripts/utils/permissions.py +++ b/dsp_permissions_scripts/utils/permissions.py @@ -77,7 +77,7 @@ def set_doaps_of_groups( print("Old DOAP:\n=========") print(d.model_dump_json(indent=2)) new_doap = update_doap_scope( - permission_iri=d.iri, + doap_iri=d.iri, scope=scope, host=host, token=token, @@ -214,7 +214,7 @@ def get_permissions_for_project( def update_doap_scope( - permission_iri: str, + doap_iri: str, scope: PermissionScope, host: str, token: str, @@ -222,7 +222,7 @@ def update_doap_scope( """ Updates the scope of the given DOAP. """ - iri = quote_plus(permission_iri, safe="") + iri = quote_plus(doap_iri, safe="") headers = {"Authorization": f"Bearer {token}"} protocol = get_protocol(host) url = f"{protocol}://{host}/admin/permissions/{iri}/hasPermissions"