From f7d491ab9303f15fc151ff5a9059025f71ae191a Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 19 Sep 2018 00:40:52 +0100 Subject: [PATCH] Bugfix: must be an Integer not a String --- scraper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper.rb b/scraper.rb index e9c230e..95c00e7 100644 --- a/scraper.rb +++ b/scraper.rb @@ -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