Skip to content

Commit

Permalink
fix: BloomFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
ConlinH committed Jul 31, 2023
1 parent 1843173 commit 949792b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aioscrapy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.16
1.2.17
4 changes: 2 additions & 2 deletions aioscrapy/dupefilters/redis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

from aioscrapy import Spider, Request
from aioscrapy import Request
from aioscrapy.db import db_manager
from aioscrapy.dupefilters import DupeFilterBase

Expand Down Expand Up @@ -99,7 +99,7 @@ async def exists(self, value):
offset = f.hash(value)
pipe.getbit(self.key, offset)
result = await pipe.execute()
return any(result)
return all(result)

async def insert(self, value):
"""
Expand Down

0 comments on commit 949792b

Please sign in to comment.