Displaying 1 result from an estimated 1 matches for "orgtasks".
Did you mean:
nr_tasks
2011 Dec 22
0
mongodb Map/reduce grouping
...ot;=>"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
aTotalScore = 0
@challenge.child_challenges.each do |aChildChallenge|
aChildChalleng...