Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kylevillegas93 committed Jan 2, 2025
1 parent 7ae52ad commit 8533637
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mappings/publisher_backlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def format_rights(self):
rights_status = rights_elements[0]

if rights_status == 'in copyright':
return '{}|{}||{}|'.format('self.record.source', 'in_copyright', 'In Copyright')
return '{}|{}||{}|'.format(self.record.source, 'in_copyright', 'In Copyright')
elif rights_status == 'public domain':
return '{}|{}||{}|'.format('self.record.source', 'public_domain', 'Public Domain')
return '{}|{}||{}|'.format(self.record.source, 'public_domain', 'Public Domain')

return None
3 changes: 2 additions & 1 deletion processes/file/fulfill_url_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def fetch_and_update_manifests(self, start_timestamp=None):
self.update_metadata_object(metadata_object, self.s3_bucket, key)
else:
for batch in batches:
if 'Content' not in batch:
logger.info(batch)
if 'Contents' not in batch:
continue

for content in batch['Contents']:
Expand Down

0 comments on commit 8533637

Please sign in to comment.