From 0cfd9893fd815907a7f4af1f7f0e7d212f4a6c23 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 7 Dec 2023 20:22:11 +0530 Subject: [PATCH] fix precomit --- components/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/search.py b/components/search.py index 9f33952..9df4adc 100644 --- a/components/search.py +++ b/components/search.py @@ -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]