diff --git a/aioscrapy/VERSION b/aioscrapy/VERSION index a96f385..21344eb 100644 --- a/aioscrapy/VERSION +++ b/aioscrapy/VERSION @@ -1 +1 @@ -1.2.16 \ No newline at end of file +1.2.17 \ No newline at end of file diff --git a/aioscrapy/dupefilters/redis.py b/aioscrapy/dupefilters/redis.py index bab78b6..28bd258 100644 --- a/aioscrapy/dupefilters/redis.py +++ b/aioscrapy/dupefilters/redis.py @@ -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 @@ -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): """