Skip to content

Commit

Permalink
Add extra key to keys to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Sep 26, 2024
1 parent 663bec4 commit d4806c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/openscm_zenodo/zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,13 @@ def get_metadata(
metadata = {"metadata": deposition.json()["metadata"]}

if user_controlled_only:
for k in ["doi", "imprint_publisher", "prereserve_doi", "publication_date"]:
for k in [
"doi",
"imprint_publisher",
"prereserve_doi",
"publication_date",
"relations",
]:
if k in metadata["metadata"]:
metadata["metadata"].pop(k)

Expand Down

0 comments on commit d4806c1

Please sign in to comment.