diff options
Diffstat (limited to 'anzen.rb')
-rw-r--r-- | anzen.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,13 +24,13 @@ GLSARepository.instance BASE_URL = 'https://security.gentoo.org/'.freeze get '/glsa/?' do - @ids = GLSARepository.instance.get.keys.reverse + @ids = GLSARepository.instance.latest_ids @nav = :glsa erb :glsa end get '/glsa/feed.:format' do - items = GLSARepository.instance.get.values.reverse[0..50] + items = GLSARepository.instance.latest 50 case params[:format] when 'atom' content_type :atom @@ -87,7 +87,7 @@ get '/subscribe' do end get '/' do - @ids = GLSARepository.instance.get.keys.reverse + @ids = GLSARepository.instance.latest_ids @nav = :index erb :index end |