Displaying 1 result from an estimated 1 matches for "atotalscor".
Did you mean:
atotalscore
2011 Dec 22
0
mongodb Map/reduce grouping
...e"=>"3"},"fourth"=>{"id"=>"4",
"score"=>"4"},"fifth"=>{"id"=>"5", "score"=>"5"}}
temp ={"id"=>"10","score"=>"20"}
aTotalScore = 0
if @challenge.instance_of?Challenge
@challenge.tasks.each_with_index do |orgTasks,index|
aTotalScore += orgTasks.score.to_i
end
$wins["first"]["id"]= @challenge.user_id
$wins["first"]["score"]= aTotalScore
aTot...