Skip to content

Commit

Permalink
Merge pull request #359 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
fix url for multiple containers
  • Loading branch information
helrond authored Oct 10, 2024
2 parents d7433e4 + e1d574c commit 6040515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion process_request/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def get_restricted_in_container(container_uris, client):
this_page = 1
more = True
while more:
container_string = f'\"{" OR ".join(container_uris.split(", "))}\"'
joined_string = '" OR "'.join(container_uris.split(", "))
container_string = f'\"{joined_string}\"'
search_uri = f"repositories/{settings.ARCHIVESSPACE['repo_id']}/search?q=top_container_uri_u_sstr:{container_string}&page={this_page}&fields[]=uri,json,ancestors&resolve[]=ancestors:id&type[]=archival_object&page_size=25"
items_in_container = client.get(search_uri).json()
for item in items_in_container["results"]:
Expand Down

0 comments on commit 6040515

Please sign in to comment.