Skip to content

Commit

Permalink
github: lower license spdx id
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed Dec 4, 2024
1 parent a736fb5 commit 808a45c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invenio_rdm_records/services/github/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ 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

def get_custom_fields(self):
Expand Down

0 comments on commit 808a45c

Please sign in to comment.