Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix precomit
Browse files Browse the repository at this point in the history
clot27 committed Dec 7, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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]

0 comments on commit 0cfd989

Please sign in to comment.