diff options
author | 2015-03-14 13:02:03 +0100 | |
---|---|---|
committer | 2015-03-14 13:02:03 +0100 | |
commit | 130827d8abc0794b8496b06dc836303a35bc443e (patch) | |
tree | 59cf464419a725aa62994f948788465727801669 /anzen.rb | |
parent | Update gem versions (diff) | |
download | security-130827d8abc0794b8496b06dc836303a35bc443e.tar.gz security-130827d8abc0794b8496b06dc836303a35bc443e.tar.bz2 security-130827d8abc0794b8496b06dc836303a35bc443e.zip |
Explicitly sort IDs
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 |