Skip to content

Commit 836cb84

Browse files
committed
fixed RFPDupeFilter persistence
1 parent c78e263 commit 836cb84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scrapy/dupefilters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__(self, path=None, debug=False):
3636
self.logger = logging.getLogger(__name__)
3737
if path:
3838
self.file = open(os.path.join(path, 'requests.seen'), 'a+')
39+
self.file.seek(0)
3940
self.fingerprints.update(x.rstrip() for x in self.file)
4041

4142
@classmethod

0 commit comments

Comments
 (0)