X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fshow-tournament.pl;fp=html%2Fshow-tournament.pl;h=f5ecf31955d859f450cdc65b9f73b304ab982f6b;hp=0a59d71c9af14cfa0cd5c81386990730a42381ab;hb=51688d09a1427570771507ac69255071752d7385;hpb=fc928636e25aef2346993efdbccf9badc4f7bcdd diff --git a/html/show-tournament.pl b/html/show-tournament.pl index 0a59d71..f5ecf31 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -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;