Skip to content

Commit

Permalink
Remove default dates set from colombia spider
Browse files Browse the repository at this point in the history
Signed-off-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
yolile committed Jun 22, 2020
1 parent 3662725 commit 985543d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions kingfisher_scrapy/spiders/colombia.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ def start_requests(self):
if hasattr(self, 'year'):
base_url += f'/page/{int(self.year)}'
if self.from_date or self.until_date:
from_date = self.default_from_date
until_date = datetime.datetime.today().strftime(self.date_format)
if self.from_date:
from_date = self.from_date.strftime(self.date_format)
if self.until_date:
until_date = self.until_date.strftime(self.date_format)
from_date = self.from_date.strftime(self.date_format)
until_date = self.until_date.strftime(self.date_format)
base_url += f'/dates/{from_date}/{until_date}'

base_url += '?page={}'
Expand Down

0 comments on commit 985543d

Please sign in to comment.