Skip to content

Commit

Permalink
Merge pull request #424 from open-contracting/415-update-colombia
Browse files Browse the repository at this point in the history
Remove default dates set from colombia spider
  • Loading branch information
yolile committed Jun 22, 2020
2 parents 3662725 + c373bc5 commit 13b62ae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions kingfisher_scrapy/spiders/colombia.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import datetime
import logging
import time
from json import JSONDecodeError
Expand Down Expand Up @@ -38,12 +37,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 13b62ae

Please sign in to comment.