From 8c610d9546d3bc744f760a7188db8bf6717e3a88 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 10:53:34 -0400 Subject: [PATCH] templ clsdf --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 6cf2060..4edfff0 100644 --- a/app.rb +++ b/app.rb @@ -15,7 +15,7 @@ get '/' do @top20 = leaders.reject { |l| l.last_action } + leaders.select { |l| l.last_action }.sort_by { |l| l.last_action } # temp cleanup - Raid.where('attacker = ? AND defender = ?', 'atomaka', 'mafiaman').destroy + Raid.where('attacker = ? AND defender = ?', 'atomaka', 'mafiaman').destroy_all erb :index end