search for: achildchallenge

Displaying 1 result from an estimated 1 matches for "achildchallenge".

2011 Dec 22
0
mongodb Map/reduce grouping
...llenge.tasks.each_with_index do |orgTasks,index| aTotalScore += orgTasks.score.to_i end $wins["first"]["id"]= @challenge.user_id $wins["first"]["score"]= aTotalScore aTotalScore = 0 @challenge.child_challenges.each do |aChildChallenge| aChildChallenge.tasks.each_with_index do |eachTasks,index| aTotalScore += eachTasks.score.to_i end #raise aTotalScore.inspect if aTotalScore > $wins["first"]["score"] #raise "first less"...