Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nosivads committed Jan 2, 2025
1 parent 731b426 commit 9eadad4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/oai.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ 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'])
print(client.get(ao).json()['title'])#, next(generator))
if file_version['publish'] == True
and file_version.get('use_statement', 'ok') not in ['image-thumbnail', 'URL-Redirected'])
if next(generator, None):
print(client.get(ao).json()['title'], next(generator).get('file_uri', '****************** no file_uri **********************'))

# update collections info in database
update_db(collections)
Expand Down

0 comments on commit 9eadad4

Please sign in to comment.