From aee9fb5a8216ae05fcb40427f377f3684308d97b Mon Sep 17 00:00:00 2001 From: Stephen Davison Date: Thu, 2 Jan 2025 15:25:57 -0800 Subject: [PATCH] Test --- app/oai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/oai.py b/app/oai.py index 9612021..5bb8de2 100644 --- a/app/oai.py +++ b/app/oai.py @@ -99,7 +99,7 @@ def prettify(elem): # 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', None) not in ['image-thumbnail', 'URL-Redirected']) + 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