Skip to content

Commit

Permalink
whoops merge
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-butcher committed Nov 20, 2024
1 parent c94a606 commit 7bd28a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transferrer/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def transfer_shoot(from_session, to_session, shoot_number, accession_number, max
source_folder = os.path.join(tmpfolder, "source")
target_folder = os.path.join(tmpfolder, "target")
already_up = [match.group(1) for match in (re_extract_suffix.search(o.key) for o in get_target_bucket(to_session, TARGET_BUCKET).filter(Prefix=f"born-digital-accessions/{accession_id}")) if match]
for files, suffix in download_shoot(from_session, shoot_number, source_folder, max_batch_bytes, ignore=already_up):
for files, suffix in download_shoot(from_session, shoot_number, source_folder, max_batch_bytes, ignore_suffixes=already_up):
upload(
to_session,
make_zip_from(files, source_folder, target_folder, accession_id, suffix)
Expand Down

0 comments on commit 7bd28a6

Please sign in to comment.