From 21e659484683502afa366423d6410baf1f773fac Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 22 Apr 2020 11:38:39 +0100 Subject: [PATCH] Output date_validated correctly. Fix #40 --- lib/uk_planning_scraper/northgate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uk_planning_scraper/northgate.rb b/lib/uk_planning_scraper/northgate.rb index c979e77..252834b 100644 --- a/lib/uk_planning_scraper/northgate.rb +++ b/lib/uk_planning_scraper/northgate.rb @@ -114,8 +114,8 @@ module UKPlanningScraper app.address = cells[1].inner_text.strip app.description = cells[2].inner_text.strip app.status = cells[3].inner_text.strip - raw_date_received = cells[4].inner_text.strip - app.date_received = Date.parse(raw_date_received) if raw_date_received != '--' + raw_date_validated = cells[4].inner_text.strip + app.date_validated = Date.parse(raw_date_validated) if raw_date_validated != '--' app.decision = cells[5].inner_text.strip if cells[5] # Some councils don't have this column, eg Hackney apps << app