Skip to content

Commit

Permalink
Update kingfisher_scrapy/base_spider.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 Jan 28, 2021
1 parent 766a338 commit cc8be95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/base_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def start_requests(self):
@handle_http_error
def parse(self, response):
archive_name, archive_format = os.path.splitext(response.request.meta['file_name'])
archive_format = archive_format.replace('.', '')
archive_format = archive_format[1:].lower()
if self.compressed_file_format:
yield self.build_file_from_response(response, data_type=archive_format, post_to_api=False)
if archive_format == 'zip':
Expand Down

0 comments on commit cc8be95

Please sign in to comment.