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 c32c18a commit ff39115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_record_importer_kcworks/services/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def assign_record_ownership(
assert changed_ownership.owner_id == new_owner.id
return new_owner

@staticmethod
def _coerce_types(metadata: dict) -> dict:
"""
Coerce metadata values to the correct types.
Expand Down Expand Up @@ -255,7 +256,7 @@ def create_invenio_record(
- status: the status of the metadata record
"""
app.logger.debug("~~~~~~~~")
metadata = self._coerce_types(metadata)
metadata = RecordsHelper._coerce_types(metadata)
app.logger.debug("metadata for new record:")
app.logger.debug(pformat(metadata))

Expand Down

0 comments on commit ff39115

Please sign in to comment.