diff --git a/src/omero_mkngff/__init__.py b/src/omero_mkngff/__init__.py index 3cedac6..0bb76a9 100644 --- a/src/omero_mkngff/__init__.py +++ b/src/omero_mkngff/__init__.py @@ -105,7 +105,7 @@ new_fileset, new_file, i-1, 'unknown'); -- use the third file as the target for setId (assumed to be the first .zattrs) - if i = 1 then + if i = 3 then update pixels set path = trim(trailing '/' from info[i][1]), name = info[i][2] from (select id from image where image.fileset = old_fileset) as subquery where pixels.image = subquery.id;