diff --git a/app.rb b/app.rb index 4edfff0..7220fa5 100644 --- a/app.rb +++ b/app.rb @@ -14,9 +14,6 @@ get '/' do leaders = Leader.all.includes(:last_attack, :last_defense) @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_all - erb :index end