Skip to content

Commit

Permalink
fix precomit
Browse files Browse the repository at this point in the history
  • Loading branch information
clot27 committed Dec 7, 2023
1 parent 2636353 commit 0cfd989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ async def search(
if not amount:
return sorted(
search_entries,
key=lambda entry: self._sort_key(entry, search_query), # type: ignore
key=lambda entry: self._sort_key(entry, search_query),
reverse=True,
)
return heapq.nlargest(
amount,
search_entries,
key=lambda entry: self._sort_key(entry, search_query), # type: ignore[arg-type]
key=lambda entry: self._sort_key(entry, search_query),
)

@alru_cache(maxsize=64) # type: ignore[misc]
Expand Down

0 comments on commit 0cfd989

Please sign in to comment.