Skip to content

Commit

Permalink
uk_fts: Do not change variable type of from_date and until_date
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 26, 2021
1 parent c7343ba commit 8fb2137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kingfisher_scrapy/spiders/uk_fts.py
Expand Up @@ -33,9 +33,9 @@ class UKFTS(LinksSpider):
def start_requests(self):
url = 'https://www.find-tender.service.gov.uk/api/1.0/ocdsReleasePackages'
if self.from_date and self.until_date:
self.from_date = self.from_date.strftime(self.date_format)
self.until_date = self.until_date.strftime(self.date_format)
url = f'{url}?updatedFrom={self.from_date}&updatedTo={self.until_date}'
from_date = self.from_date.strftime(self.date_format)
until_date = self.until_date.strftime(self.date_format)
url = f'{url}?updatedFrom={from_date}&updatedTo={until_date}'

yield scrapy.Request(url, meta={'file_name': 'start.json'}, headers={'Accept': 'application/json'})

Expand Down

0 comments on commit 8fb2137

Please sign in to comment.