瀏覽代碼

Add status search for Northgate

tags/v0.5.0
Adrian Short 4 年之前
父節點
當前提交
30d6240b20
Signed by untrusted user: adrian GPG 金鑰 ID: 4B54F9AE91AB06BB
共有 2 個檔案被更改,包括 11 行新增0 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存