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 self
end end


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

private private
# Handle the simple params with this # 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['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 form_vars['dateEnd'] = params[:decided_to].to_s if params[:decided_to] # YYYY-MM-DD
end end
# Status
if params[:status]
form_vars['cboStatusCode'] = params[:status]
end


# Case officer code # Case officer code
if params[:case_officer_code] if params[:case_officer_code]


Loading…
Cancel
Save