Skip to content

Commit

Permalink
docs: Update comment in Unflatten pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 7, 2025
1 parent 2911b6d commit f053761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def process_item(self, item, spider):

input_name = item.file_name

# uganda_releases yields JSON until 2023-2024, using the same URL pattern.
# For example, uganda_releases previously yielded either JSON or XLSX, using the same URL pattern.
if input_name.endswith('.json'):
if item.data.startswith(b'PK\x03\x04'):
input_name = f'{os.path.splitext(input_name)[0]}.xlsx'
Expand Down

0 comments on commit f053761

Please sign in to comment.