summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'anzen.rb')
-rw-r--r--anzen.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/anzen.rb b/anzen.rb
index 655e7de..86dca94 100644
--- a/anzen.rb
+++ b/anzen.rb
@@ -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