Skip to content

Commit

Permalink
zenodo api change filename -> key
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Oct 30, 2023
1 parent 4e07876 commit 095fca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_external_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ def update_from_zenodo(
resource_output_path = dist / resource_doi / "resource.yaml"
version_name = f"version from {hit['metadata']['publication_date']}"
rdf_urls = [
f"https://zenodo.org/api/records/{hit['recid']}/files/{file_hit['filename']}/content"
f"https://zenodo.org/api/records/{hit['recid']}/files/{file_hit['key']}/content"
for file_hit in hit["files"]
if (file_hit["filename"] == "rdf.yaml" or file_hit["filename"].endswith("bioimageio.yaml"))
if (file_hit["key"] == "rdf.yaml" or file_hit["key"].endswith(".bioimageio.yaml"))
]
rdf = {}
rdf_source = "unknown"
Expand Down

0 comments on commit 095fca1

Please sign in to comment.