Skip to content

Commit

Permalink
fix: Debugging new refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Nov 16, 2024
1 parent 2ff9ad6 commit d768481
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions invenio_record_importer_kcworks/services/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,11 @@ def handle_record_files(
# for all imports.
if not source_filepaths:
first_file = next(iter(file_data["entries"]))
source_filepaths = (
{
first_file: metadata["custom_fields"][
"hclegacy:file_location"
]
},
)
source_filepaths = {
first_file: metadata["custom_fields"][
"hclegacy:file_location"
]
}

# If we're updating a draft of a published record, we need to
# unlock the published record files before we can upload new
Expand Down

0 comments on commit d768481

Please sign in to comment.