|
@@ -35,17 +35,21 @@ class Site |
|
|
|
|
|
|
|
|
# Appeals page |
|
|
# Appeals page |
|
|
summary = ScraperWiki.select(" |
|
|
summary = ScraperWiki.select(" |
|
|
authority_name, appeal_status, appeal_decision, count(*) as applications |
|
|
|
|
|
|
|
|
authority_name, status, decision, appeal_status, appeal_decision, count(*) as applications |
|
|
from applications |
|
|
from applications |
|
|
where appeal_status is not null |
|
|
|
|
|
and appeal_status != 'Unknown' |
|
|
|
|
|
group by authority_name, appeal_status, appeal_decision |
|
|
|
|
|
|
|
|
where (appeal_status is not null |
|
|
|
|
|
and appeal_status != 'Unknown') |
|
|
|
|
|
or status like '%appeal%' |
|
|
|
|
|
group by authority_name, appeal_status, appeal_decision |
|
|
|
|
|
collate nocase |
|
|
") |
|
|
") |
|
|
|
|
|
|
|
|
apps = ScraperWiki.select(" |
|
|
apps = ScraperWiki.select(" |
|
|
* from applications |
|
|
* from applications |
|
|
where appeal_status is not null |
|
|
|
|
|
and appeal_status != 'Unknown' |
|
|
|
|
|
|
|
|
where (appeal_status is not null |
|
|
|
|
|
and appeal_status != 'Unknown') |
|
|
|
|
|
or status like '%appeal%' |
|
|
|
|
|
collate nocase |
|
|
") |
|
|
") |
|
|
|
|
|
|
|
|
path = 'appeals' |
|
|
path = 'appeals' |
|
|