fix equality instead of mod

This commit is contained in:
Victor Shyba 2021-03-05 05:47:45 -03:00
parent 57f1108df2
commit 4d83d42b4c

View file

@ -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'))