Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

6 lines (5 sloc) 0.226 kB
get '/' do
# Get the dates. Be warned, I never said this was good code ;-)
@dates = Dir[settings.data_root + '/*.json'].sort.reverse.first(168).reverse.map { |a| a[/\d{4}-\d{2}-\d{2}-\d*(?=\.)/] }.compact
erb :index
end
Jump to Line
Something went wrong with that request. Please try again.