Skip to content

Commit

Permalink
FIX/#576
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Oct 3, 2022
1 parent 2d1132b commit 882eba0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion opteryx/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def peak(generator): # type:ignore
item = next(generator)
except StopIteration:
return None, []
return item, itertools.chain(item, generator)
return item, itertools.chain([item], generator)


def fuzzy_search(name, candidates):
Expand Down
1 change: 0 additions & 1 deletion opteryx/utils/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def limit_records(data_pages, limit):

# if we don't actually have a limit set, just return
if limit is None:
data_pages = list(data_pages)
return pyarrow.concat_tables(data_pages, promote=True)

for page in data_pages:
Expand Down

0 comments on commit 882eba0

Please sign in to comment.