Commit 5d7b9c3f authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Fix bug. Forgot to add 'not' to condition

parent 8b15e300
...@@ -25,7 +25,7 @@ class BaseSpider(scrapy.Spider): ...@@ -25,7 +25,7 @@ class BaseSpider(scrapy.Spider):
return companies.get_companies() return companies.get_companies()
def can_follow(self, next_url, duplicate): def can_follow(self, next_url, duplicate):
if next_url and duplicate: if next_url and not duplicate:
return True return True
else: else:
return False return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment