diff --git a/lib/uk_planning_scraper/authority_scrape_params.rb b/lib/uk_planning_scraper/authority_scrape_params.rb index 13d3b63..b3170e2 100644 --- a/lib/uk_planning_scraper/authority_scrape_params.rb +++ b/lib/uk_planning_scraper/authority_scrape_params.rb @@ -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 diff --git a/lib/uk_planning_scraper/northgate.rb b/lib/uk_planning_scraper/northgate.rb index e61c3d7..cae1edf 100644 --- a/lib/uk_planning_scraper/northgate.rb +++ b/lib/uk_planning_scraper/northgate.rb @@ -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]