Skip to content

Commit

Permalink
Remove boundary check
Browse files Browse the repository at this point in the history
  • Loading branch information
knabar committed Jul 3, 2024
1 parent e71cf99 commit 091e5fc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 091e5fc

Please sign in to comment.