From 985543d3aa3163c461dfa73384d7a8aa74bb0a03 Mon Sep 17 00:00:00 2001 From: Yohanna Lisnichuk Date: Mon, 22 Jun 2020 13:06:21 -0400 Subject: [PATCH] Remove default dates set from colombia spider Signed-off-by: Yohanna Lisnichuk --- kingfisher_scrapy/spiders/colombia.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kingfisher_scrapy/spiders/colombia.py b/kingfisher_scrapy/spiders/colombia.py index c9a26767..bbdd5560 100644 --- a/kingfisher_scrapy/spiders/colombia.py +++ b/kingfisher_scrapy/spiders/colombia.py @@ -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={}'