Pārlūkot izejas kodu

Bugfix: must be an Integer not a String

pull/1/head
Adrian Short pirms 6 gadiem
vecāks
revīzija
f7d491ab93
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      scraper.rb

+ 1
- 1
scraper.rb Parādīt failu

@@ -6,7 +6,7 @@ auths = UKPlanningScraper::Authority.tagged('london')
auths.each_with_index do |auth, i|
begin
puts "#{i + 1} of #{auths.size}: Scraping #{auth.name}"
apps = auth.scrape({ decided_days: ENV['MORPH_DAYS'] })
apps = auth.scrape({ decided_days: ENV['MORPH_DAYS'].to_i })
ScraperWiki.save_sqlite([:authority_name, :council_reference], apps)
puts "#{auth.name}: #{apps.size} application(s) saved."
rescue UKPlanningScraper::SystemNotSupportedError => e


Notiek ielāde…
Atcelt
Saglabāt