openaustralia/planningalerts-app — pull request #10 by pserwylo (2013-02-07 11:19:09+00:00)
Title: Median applications per week were (semi-)incorrectly showing zero for some councils.

https://tickets.openaustraliafoundation.org.au/browse/PA-444

I'm not sure if this is the best solution, but the calculation for median applications per week now excludes weeks where there were zero applications. I understand that this will make calculations slightly wrong for councils who tend to have more genuine weeks with zero applications, but the tradeoff is with the inevitable scrapers that fail for long periods at a time now returning numbers other than 0.

Another solution would be to smooth the filter so it only pulls, e.g. multiple weeks in a row of zero.