Skip to content

Commit

Permalink
Update ia_filterdb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMKN authored Apr 5, 2023
1 parent 9d6918c commit d35ff99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions database/ia_filterdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ async def get_search_results(query, file_type=None, max_results=(MAX_RIST_BTNS),
cursor.skip(offset).limit(max_results)
# Get list of files
files = await cursor.to_list(length=max_results)
all_files = await cursor.to_list(length=total_results)

return files, next_offset, total_results, all_files
return files, next_offset, total_results


async def get_all_files(query):
Expand Down

0 comments on commit d35ff99

Please sign in to comment.