|
@@ -129,11 +129,11 @@ module UKPlanningScraper |
|
|
when 'Planning Portal Reference' |
|
|
when 'Planning Portal Reference' |
|
|
app[:alternative_reference] = value |
|
|
app[:alternative_reference] = value |
|
|
when 'Application Received' |
|
|
when 'Application Received' |
|
|
app[:date_received] = Date.parse(value) if value != '' |
|
|
|
|
|
|
|
|
app[:date_received] = Date.parse(value) if value.match(/\d/) |
|
|
when 'Application Registered' |
|
|
when 'Application Registered' |
|
|
app[:date_received] = Date.parse(value) if value != '' |
|
|
|
|
|
|
|
|
app[:date_received] = Date.parse(value) if value.match(/\d/) |
|
|
when 'Application Validated' |
|
|
when 'Application Validated' |
|
|
app[:date_validated] = Date.parse(value) if value != '' |
|
|
|
|
|
|
|
|
app[:date_validated] = Date.parse(value) if value.match(/\d/) |
|
|
when 'Address' |
|
|
when 'Address' |
|
|
app[:address] = value |
|
|
app[:address] = value |
|
|
when 'Proposal' |
|
|
when 'Proposal' |
|
@@ -143,7 +143,7 @@ module UKPlanningScraper |
|
|
when 'Decision' |
|
|
when 'Decision' |
|
|
app[:decision] = value |
|
|
app[:decision] = value |
|
|
when 'Decision Issued Date' |
|
|
when 'Decision Issued Date' |
|
|
app[:date_decision] = Date.parse(value) if value != '' |
|
|
|
|
|
|
|
|
app[:date_decision] = Date.parse(value) if value.match(/\d/) |
|
|
when 'Appeal Status' |
|
|
when 'Appeal Status' |
|
|
app[:appeal_status] = value |
|
|
app[:appeal_status] = value |
|
|
when 'Appeal Decision' |
|
|
when 'Appeal Decision' |
|
|