X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fshow-tournament.pl;h=87df626191e301cd01851f47e8b59a2ebd7d7c03;hp=b204270422048e58ee57d461c324df362a509efb;hb=22b4ad6760e9b0a21f799fa27af0c1be0d12c029;hpb=6e5d70892c667ade86cc03a73339efe6f8c724b1 diff --git a/html/show-tournament.pl b/html/show-tournament.pl index b204270..87df626 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -61,10 +61,13 @@ for my $score (@$scores) { $pl->[$#$pl]->{'total'} += $score->{'score'}; } +my $num_rounds = scalar @rounds; + ccbs::print_header(); ccbs::process_template('show-tournament.tmpl', $tournament->{'tournamentname'}, { tournament => $tournament, rankings => $rankings, - rounds => \@rounds + rounds => \@rounds, + num_rounds => $num_rounds }); $dbh->disconnect;