Displaying 1 result from an estimated 1 matches for "whowinning".
Did you mean:
whinning
2011 Dec 22
0
mongodb Map/reduce grouping
...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"
whoWinning aTotalScore, $wins["first"]["score"],
aChildChallenge.user_id, 1
aTotalScore = 0
next if aTotalScore = 0
elsif aTotalScore > $wins["second"]["score"]
#raise "decond less"
whoWinning aTotalScore, $wi...