Skip to content

Commit

Permalink
Using a fixed number to download all... this is hacky and not nice.
Browse files Browse the repository at this point in the history
Note: Still not working as we get SPDX URLs but the URLs on Zenodo / InvenioRDM are opensource.org URLs
  • Loading branch information
led02 committed Oct 30, 2023
1 parent 4cc4165 commit 098fd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hermes/commands/deposit/invenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from hermes.model.path import ContextPath
from hermes.utils import hermes_user_agent

_DEFAULT_LICENSES_API_PATH = "api/vocabulary/licenses"
_DEFAULT_LICENSES_API_PATH = "api/vocabularies/licenses"
_DEFAULT_COMMUNITIES_API_PATH = "api/communities"
_DEFAULT_DEPOSITIONS_API_PATH = "api/deposit/depositions"

Expand Down Expand Up @@ -553,7 +553,7 @@ def _get_license_identifier(ctx: CodeMetaContext, license_api_url: str):

# Fetch full list of licenses available... maybe we should cache this.
response = requests.get(
f"{license_api_url}", headers={"User-Agent": hermes_user_agent}
f"{license_api_url}?size=1000", headers={"User-Agent": hermes_user_agent}
)
response.raise_for_status()

Expand Down

0 comments on commit 098fd05

Please sign in to comment.