From 3c93a4eea5ffb0d2040d6adc0d12f013129080ad Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 31 Jul 2019 15:41:42 +0100 Subject: [PATCH] Use conn.SERVICE_OPTS in well_images() --- plugin/omero_iviewer/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/omero_iviewer/views.py b/plugin/omero_iviewer/views.py index be5efd401..6d17703bb 100644 --- a/plugin/omero_iviewer/views.py +++ b/plugin/omero_iviewer/views.py @@ -482,7 +482,8 @@ def well_images(request, conn=None, **kwargs): # get total count first count = query_service.projection( "select count(distinct ws.id) from WellSample ws " + - "where ws.well.id = :well_id", params, ) + "where ws.well.id = :well_id", params, + conn.SERVICE_OPTS) results = {"data": [], "meta": {"totalCount": count[0][0].val}} # set offset and limit @@ -494,7 +495,8 @@ def well_images(request, conn=None, **kwargs): # fire off query images = query_service.findAllByQuery( "select ws.image from WellSample ws " + - "where ws.well.id = :well_id order by well_index", params) + "where ws.well.id = :well_id order by well_index", params, + conn.SERVICE_OPTS) # we need only image id and name for our purposes for img in images: