Skip to content

Commit

Permalink
sort by ID to pick the first image from fileset
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Dec 12, 2023
1 parent 4def726 commit f03849d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omeroweb/webclient/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _load_first_selected(self, first_obj, attributes):
params = omero.sys.ParametersI()
params.addId(attributes["id"])
params.page(0, 1)
query = "select img from Image img where img.fileset.id=:id"
query = "select img from Image img where img.fileset.id=:id order by img.id"
first_image = self.conn.getQueryService().findAllByQuery(
query, params, self.conn.SERVICE_OPTS
)[0]
Expand Down

0 comments on commit f03849d

Please sign in to comment.