Skip to content

Commit

Permalink
Fix slicing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jan 20, 2024
1 parent 457a4af commit cebee37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiled/catalog/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ class CatalogContainerAdapter(CatalogNodeAdapter):
async def keys_range(self, offset, limit):
if self.data_sources:
return (await self.get_adapter()).keys()[
offset : offset + limit # noqa: E203
offset : (offset + limit) if limit is not None else None # noqa: E203
]
statement = select(orm.Node.key).filter(orm.Node.ancestors == self.segments)
for condition in self.conditions:
Expand All @@ -781,7 +781,7 @@ async def keys_range(self, offset, limit):
async def items_range(self, offset, limit):
if self.data_sources:
return (await self.get_adapter()).items()[
offset : offset + limit # noqa: E203
offset : (offset + limit) if limit is not None else None # noqa: E203
]
statement = select(orm.Node).filter(orm.Node.ancestors == self.segments)
for condition in self.conditions:
Expand Down

0 comments on commit cebee37

Please sign in to comment.