Skip to content

Commit

Permalink
add source field
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Jun 13, 2024
1 parent f809ba5 commit 633db73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bioimageio_collection_backoffice/collection_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class CollectionEntry(Node, frozen=True):
tags: Sequence[str] = ()
training_data: Optional[TrainingData] = None
type: Literal["application", "model", "notebook", "dataset"]
source: Optional[str] = None

def __lt__(self, other: CollectionEntry):
sdc = 0 if self.download_count == "?" else self.download_count
Expand Down
1 change: 1 addition & 0 deletions bioimageio_collection_backoffice/remote_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,5 +1204,6 @@ def create_collection_entries(
tags=rdf.get("tags", []),
training_data=rdf["training_data"] if "training_data" in rdf else None,
type=rdf["type"],
source=rdf.get("source"),
)
], id_map

0 comments on commit 633db73

Please sign in to comment.