Skip to content

Commit

Permalink
closes #1142
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Jan 16, 2025
1 parent 49ecf06 commit 780fcab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kingfisher_scrapy/spiders/mexico_nuevo_leon.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def start_requests(self):
@handle_http_error
def parse_list(self, response):
for resource in response.json()['result']['resources']:
if resource['format'].upper() == 'JSON':
# Presently, only one URL matches.
# Some files don't include an extension file, so we need to check the file name instead.
if resource['name'].upper().startswith('JSON-OCDS'):
yield self.build_request(resource['url'], formatter=components(-1))

0 comments on commit 780fcab

Please sign in to comment.