Skip to content

Commit

Permalink
github: lower case spdx license id for github
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed Dec 4, 2024
1 parent ea37f28 commit 69fbf02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/zenodo_rdm/github/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,7 @@ def metadata(self):
)
# Add default license if not yet added
if not output.get("rights"):
output.update({"rights": [{"id": metadata.repo_license or "cc-by-4.0"}]})
output.update(
{"rights": [{"id": metadata.repo_license.lower() or "cc-by-4.0"}]}
)
return output

0 comments on commit 69fbf02

Please sign in to comment.