From bf91c783a22053b9efca042f09abd77faf9759b7 Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Thu, 1 Sep 2022 17:02:21 -0400 Subject: [PATCH] use configured repo id --- process_request/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process_request/helpers.py b/process_request/helpers.py index 2a687f1..e628e42 100644 --- a/process_request/helpers.py +++ b/process_request/helpers.py @@ -294,7 +294,7 @@ def get_resource_creators(resource, client): creators = [] if resource.get("linked_agents"): linked_agent_uris = [a["ref"].replace("/", "\\/") for a in resource["linked_agents"] if a["role"] == "creator"] - search_uri = f"/repositories/2/search?fields[]=title&type[]=agent_person&type[]=agent_corporate_entity&type[]=agent_family&page=1&q={' OR '.join(linked_agent_uris)}" + search_uri = f"/repositories/{settings.ARCHIVESSPACE['repo_id']}/search?fields[]=title&type[]=agent_person&type[]=agent_corporate_entity&type[]=agent_family&page=1&q={' OR '.join(linked_agent_uris)}" resp = client.get(search_uri) resp.raise_for_status() creators = resp.json()["results"]