|
|
@@ -51,6 +51,11 @@ end |
|
|
|
def gen_homepage |
|
|
|
decisions = ScraperWiki.select("* from `applications` order by date_decision desc limit 20") |
|
|
|
write_page('.', 'index', { decisions: decisions }) |
|
|
|
|
|
|
|
def gen_new |
|
|
|
apps = ScraperWiki.select("* from `applications` order by date_received desc limit 30") |
|
|
|
write_page('new', 'new', { apps: apps }) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
def gen_authorities |
|
|
@@ -83,4 +88,5 @@ puts @working_dir |
|
|
|
@pages = 0 |
|
|
|
create_output_dir |
|
|
|
gen_homepage |
|
|
|
gen_new |
|
|
|
gen_authorities |