From 091e5fc2d35212271ac71fd66b42c611299d6fde Mon Sep 17 00:00:00 2001 From: Andreas Knab Date: Wed, 3 Jul 2024 14:22:04 +0200 Subject: [PATCH] Remove boundary check --- omeroweb/webgateway/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/omeroweb/webgateway/views.py b/omeroweb/webgateway/views.py index df49c25204..cdaf6b28dd 100644 --- a/omeroweb/webgateway/views.py +++ b/omeroweb/webgateway/views.py @@ -3529,12 +3529,7 @@ def perform_get_where_list(request, fileid, conn=None, **kwargs): column_count = len(table.getHeaders()) end = min(row_count, start + settings.MAX_TABLE_SLICE_SIZE) logger.info(f"Query '{query}' from rows {start} to {end}") - if start >= end: - hits = [] - else: - hits = table.getWhereList(query, None, start, end, 1) - # TODO: getWhereList may ignore start and end - remove once fixed - hits = [hit for hit in hits if start <= hit < end] + hits = table.getWhereList(query, None, start, end, 1) if start < end else [] return { "rows": hits, "meta": {