Pārlūkot izejas kodu

Output date_validated correctly. Fix #40

tags/v0.4.6
Adrian Short pirms 4 gadiem
vecāks
revīzija
21e6594846
Parakstījis neuzticams lietotājs: adrian GPG atslēgas ID: 4B54F9AE91AB06BB
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      lib/uk_planning_scraper/northgate.rb

+ 2
- 2
lib/uk_planning_scraper/northgate.rb Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt