]> git.sesse.net Git - ccbs/blobdiff - html/show-tournament.pl
Added template code for showing rank.
[ccbs] / html / show-tournament.pl
index 0a59d71c9af14cfa0cd5c81386990730a42381ab..f5ecf31955d859f450cdc65b9f73b304ab982f6b 100755 (executable)
@@ -61,7 +61,7 @@ for my $score (@$scores) {
        my $pl = $p->[$#$p]->{'players'};
        if ($score->{'nick'} ne $player) {
                $player = $score->{'nick'};
-               push @$pl, { player => $score->{'player'}, nick => $player, songs => [], total => 0 };
+               push @$pl, { player => $score->{'player'}, nick => $player, songs => [], total => 0, rank => 1 };
        }
        
        push @{$pl->[$#$pl]->{'songs'}}, $score;