Browse Source

Add status search for Northgate

tags/v0.5.0
Adrian Short 4 years ago
parent
commit
30d6240b20
Signed by untrusted user: adrian GPG Key ID: 4B54F9AE91AB06BB
2 changed files with 11 additions and 0 deletions
  1. +6
    -0
      lib/uk_planning_scraper/authority_scrape_params.rb
  2. +5
    -0
      lib/uk_planning_scraper/northgate.rb

+ 6
- 0
lib/uk_planning_scraper/authority_scrape_params.rb View File

@@ -95,6 +95,12 @@ module UKPlanningScraper
self
end

def status(s)
check_class(s, String)
@scrape_params[:status] = s.strip
self
end

private
# Handle the simple params with this


+ 5
- 0
lib/uk_planning_scraper/northgate.rb View File

@@ -50,6 +50,11 @@ module UKPlanningScraper
form_vars['dateStart'] = params[:decided_from].to_s if params[:decided_from] # YYYY-MM-DD
form_vars['dateEnd'] = params[:decided_to].to_s if params[:decided_to] # YYYY-MM-DD
end
# Status
if params[:status]
form_vars['cboStatusCode'] = params[:status]
end

# Case officer code
if params[:case_officer_code]


Loading…
Cancel
Save