fixed RFPDupeFilter persistence

This commit is contained in:
Mikhail Korobov 2015-07-28 14:32:14 +05:00 committed by Daniel Graña
parent 97f2fb302d
commit 97d080ee26
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class RFPDupeFilter(BaseDupeFilter):
self.logger = logging.getLogger(__name__)
if path:
self.file = open(os.path.join(path, 'requests.seen'), 'a+')
self.file.seek(0)
self.fingerprints.update(x.rstrip() for x in self.file)
@classmethod