From 30967df65a6905e990adf073b1748e7553606401 Mon Sep 17 00:00:00 2001 From: Stephen Davison Date: Thu, 2 Jan 2025 15:32:05 -0800 Subject: [PATCH] Test --- app/oai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/oai.py b/app/oai.py index 5bb8de2..46ab6c7 100644 --- a/app/oai.py +++ b/app/oai.py @@ -98,8 +98,8 @@ def prettify(elem): for do, ao in item[1]: # print archival object title and digital object URI generator = (file_version for file_version in client.get(do).json()['file_versions'] - if file_version['publish'] == True - and file_version.get('use_statement', 'ok') not in ['image-thumbnail', 'URL-Redirected']) + if file_version['publish'] == True) + #and file_version.get('use_statement', 'ok') not in ['image-thumbnail', 'URL-Redirected']) print(client.get(ao).json()['title'], next(generator).get('file_uri', '****************** no file_uri **********************')) # update collections info in database