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 4699086 commit 61b9832
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/oai.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ def prettify(elem):
if linked_instance['ref'][:33] == '/repositories/2/archival_objects/':
# build dictionary of collections and archival objects
if collections_dict.get(coll):
collections_dict[coll].add(linked_instance['ref'])
collections_dict[coll].add((obj['uri'], linked_instance['ref']))
else:
collections_dict[coll] = {linked_instance['ref']}
collections_dict[coll] = {(obj['uri'],linked_instance['ref'])}

print('Number of collections with digital objects:', len(collections))
print()
print(collections_dict)
print()
for item in collections_dict.items():
print(item[0], ':', len(item[1]))

Expand Down

0 comments on commit 61b9832

Please sign in to comment.