fixed bug which was causing the DOWNLOAD_DELAY setting to be ignored (the spider download_delay attribute was working though)

This commit is contained in:
Pablo Hoffman 2010-02-19 16:32:30 -02:00
parent 51faec5dcd
commit 53dfc4d3dd
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class SpiderInfo(object):
self.download_delay = settings.getfloat('DOWNLOAD_DELAY')
else:
self.download_delay = download_delay
if download_delay:
if self.download_delay:
self.max_concurrent_requests = 1
elif max_concurrent_requests is None:
self.max_concurrent_requests = settings.getint('CONCURRENT_REQUESTS_PER_SPIDER')