Skip to content

Commit

Permalink
united_kingdom_contracts_finder_base: restore callback
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Sep 20, 2023
1 parent 7066a00 commit ef95e65
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def start_requests(self):
url = f'{url}&publishedFrom={from_date}&publishedTo={until_date}'
else:
until_date = datetime.utcnow().strftime(self.date_format)
yield scrapy.Request(url, meta={'file_name': f'{until_date}.json'}) # reverse chronological order
yield scrapy.Request(url, meta={'file_name': f'{until_date}.json'}, # reverse chronological order
callback=self.parse_page)

@handle_http_error
def parse(self, response):
Expand Down

0 comments on commit ef95e65

Please sign in to comment.