From 4d83d42b4cfe56c5c062dab405ab3d5772059fc0 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 5 Mar 2021 05:47:45 -0300 Subject: [PATCH] fix equality instead of mod --- lbry/wallet/server/db/elastic_search.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbry/wallet/server/db/elastic_search.py b/lbry/wallet/server/db/elastic_search.py index ed7359bb6..725aae7a5 100644 --- a/lbry/wallet/server/db/elastic_search.py +++ b/lbry/wallet/server/db/elastic_search.py @@ -94,7 +94,7 @@ class SearchIndex: else: yield extract_doc(doc, self.index) count += 1 - if count % 100: + if count % 100 == 0: self.logger.info("Indexing in progress, %d claims.", count) self.logger.info("Indexing done for %d claims.", count) @@ -206,7 +206,6 @@ class SearchIndex: self.short_id_cache[key] = result return self.short_id_cache.get(key, None) - async def search(self, **kwargs): if 'channel' in kwargs: result = await self.resolve_url(kwargs.pop('channel'))