Pārlūkot izejas kodu

Bugfix scopes

tags/v0.4.5
Adrian Short pirms 6 gadiem
vecāks
revīzija
b9adc22816
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +4
    -4
      lib/uk_planning_scraper/authority.rb

+ 4
- 4
lib/uk_planning_scraper/authority.rb Parādīt failu

@@ -39,10 +39,10 @@ module UKPlanningScraper
end
# Select which scraper to use based on the URL
if authority.url.match(/search\.do\?action=advanced/i)
apps = self.scrape_idox(authority.url, params, options)
elsif authority.url.match(/generalsearch\.aspx/i)
apps = self.scrape_northgate(authority.url, params, options)
if @url.match(/search\.do\?action=advanced/i)
apps = UKPlanningScraper.scrape_idox(@url, params, options)
elsif @url.match(/generalsearch\.aspx/i)
apps = UKPlanningScraper.scrape_northgate(@url, params, options)
else
# Not supported
raise SystemNotSupportedError.new("Planning system not supported for #{@name} at URL: #{@url}")


Notiek ielāde…
Atcelt
Saglabāt