@ -25,11 +25,11 @@ class Challenge < ActiveRecord::Base
scope :practice_type, lambda{where(st: 0)}
def shixun_done_new
self.games.map{|game| game.status == 2 }.size
self.games.select{|game| game.status == 2 }.size
end
def shixun_running_new
self.games.map{|game| game.status != 2 }.size
self.games.select{|game| game.status != 2 }.size
def game_difficulty