Skip to content

Commit

Permalink
Update kingfisher_scrapy/spiders/portugal_base.py
Browse files Browse the repository at this point in the history
Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com>
  • Loading branch information
yolile and jpmckinney committed Sep 20, 2023
1 parent 5c21481 commit 7066a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/spiders/portugal_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def start_requests(self):
from_date = self.from_date.strftime(self.date_format)
until_date = self.until_date.strftime(self.date_format)
url = f'{url}?contractStartDate={from_date}&contractEndDate={until_date}'
self.formatter = staticmethod(parameters('offset', 'contractStartDate', 'contractEndDate'))
self.formatter = staticmethod(parameters('offset', 'contractStartDate'))
else:
from_date = self.default_from_date
yield scrapy.Request(url, meta={'file_name': f'{from_date}.json'})
Expand Down

0 comments on commit 7066a00

Please sign in to comment.