Skip to content

Commit

Permalink
squashme: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Aug 22, 2023
1 parent 1678957 commit f96ca8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renku/domain_model/dataset.py
Expand Up @@ -180,7 +180,7 @@ class ImageObject(Slots):

id: str
content_url: str
position: str
position: int

def __init__(self, *, content_url: str, id: str, position: int):
id = get_path(id)
Expand Down Expand Up @@ -656,6 +656,8 @@ def update_metadata_from(self, other: "Dataset", exclude=None):
# and not match the SHACL definition for Renku. This cannot be addressed in the dataset
# providers because the dataset providers do not have access to the dataset ID which is needed
# for setting the dataset image ID.
if not isinstance(self.images, list):
return
for image_ind in range(len(self.images)):
self.images[image_ind].id = ImageObject.generate_id(self.id, self.images[image_ind].position)

Expand Down

0 comments on commit f96ca8b

Please sign in to comment.