From b9adc22816d24dee93d42eca9edae4f262f90ed8 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 18 Sep 2018 23:16:52 +0100 Subject: [PATCH] Bugfix scopes --- lib/uk_planning_scraper/authority.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/uk_planning_scraper/authority.rb b/lib/uk_planning_scraper/authority.rb index 18e99ab..43084c1 100644 --- a/lib/uk_planning_scraper/authority.rb +++ b/lib/uk_planning_scraper/authority.rb @@ -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}")