Skip to content

Commit

Permalink
legacy: deserializers: fix notes type -> id in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yashlamba authored and slint committed Nov 13, 2023
1 parent 47429d6 commit 78d8904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions site/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,9 @@ def description_type_v(app, description_type):
vocab = vocabulary_service.create(
system_identity,
{
"id": "other",
"title": {"en": "Other"},
"props": {"datacite": "Other"},
"id": "notes",
"title": {"en": "Notes"},
"props": {"datacite": "Notes"},
"type": "descriptiontypes",
},
)
Expand Down
2 changes: 1 addition & 1 deletion site/zenodo_rdm/legacy/deserializers/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def load_additional_descriptions(self, result, original, **kwargs):
notes = original.get("notes")
if notes:
rdm_additional_descriptions.append(
{"description": notes, "type": {"id": "other"}}
{"description": notes, "type": {"id": "notes"}}
)

method = original.get("method")
Expand Down

0 comments on commit 78d8904

Please sign in to comment.