Skip to content

Commit

Permalink
Update kingfisher_scrapy/spiders/honduras_portal_bulk_files.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
aguilerapy and jpmckinney authored Nov 13, 2020
1 parent f74153d commit bf4d753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kingfisher_scrapy/spiders/honduras_portal_bulk_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def build_urls(self, date):
for system in self.oncae_systems:
if self.system and system != self.system:
continue
yield self.pattern.format(f"{self.available_publishers.get(publisher)}_"
f"{self.oncae_systems.get(system)}_{date.year}_{date.month:02d}.json")
yield self.pattern.format(f"{self.available_publishers[publisher]}_"
f"{self.oncae_systems[system]}_{date.year}_{date.month:02d}.json")
else:
yield self.pattern.format(f"{self.available_publishers.get(publisher)}_"
yield self.pattern.format(f"{self.available_publishers[publisher]}_"
f"{date.year}_{date.month:02d}.json")

def get_formatter(self):
Expand Down

0 comments on commit bf4d753

Please sign in to comment.