|
|
@@ -9,9 +9,17 @@ class Site |
|
|
|
from applications |
|
|
|
group by authority_name, status, decision, appeal_status, appeal_decision |
|
|
|
") |
|
|
|
|
|
|
|
q = ScraperWiki.select(" |
|
|
|
scraped_at |
|
|
|
from applications |
|
|
|
order by scraped_at desc |
|
|
|
limit 1") |
|
|
|
|
|
|
|
last_updated = DateTime.parse(q[0]['scraped_at']) |
|
|
|
|
|
|
|
path = '.' |
|
|
|
Petrify.page(path, 'index', { summary: summary }) |
|
|
|
Petrify.page(path, 'index', { summary: summary, last_updated: last_updated }) |
|
|
|
Petrify.csv(path, 'inlink-summary', summary) |
|
|
|
|
|
|
|
# New applications page |
|
|
|