Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 16, 2023
1 parent b4ba67b commit 4def726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omeroweb/webclient/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def _load_first_selected(self, first_obj, attributes):
params.page(0, 1)
query = "select img from Image img where img.fileset.id=:id"
first_image = self.conn.getQueryService().findAllByQuery(
query, params, self.conn.SERVICE_OPTS)[0]
query, params, self.conn.SERVICE_OPTS
)[0]
first_selected = self.conn.getObject("Image", first_image.id.val)
else:
# All other objects can be loaded by type and attributes.
Expand Down

0 comments on commit 4def726

Please sign in to comment.