my $p = $rounds[$#rounds]->{'parallels'};
if ($score->{'parallel'} != $parallel) {
$parallel = $score->{'parallel'};
- push @$p, { parallel => $parallel, players => [], songs => [] };
+ push @$p, { parallel => $parallel, players => [], songs => [], num_songs => 0 };
$player = '';
# Information on songs is not selected from roundrandomsongs etc.,
} else {
push @{$p->[$#$p]->{'songs'}}, $score->{'title'};
}
+ $p->[$#$p]->{'num_songs'}++;
}
my $pl = $p->[$#$p]->{'players'};
if ($score->{'nick'} ne $player) {
$player = $score->{'nick'};
- push @$pl, { nick => $player, songs => [] };
+ push @$pl, { nick => $player, songs => [], total => 0 };
}
chosen => $score->{'chosen'},
score => $score->{'score'}
};
+ $pl->[$#$pl]->{'total'} += $score->{'score'};
}
ccbs::print_header();