]> git.sesse.net Git - ccbs/blobdiff - html/show-tournament.pl
Added links for all songs (no backend yet) in the tournament view.
[ccbs] / html / show-tournament.pl
index 61c3badf7226c2d285226a0da8be07e54dc2e853..3d0db3c945f38c8bb363b93362b30d20637e329e 100755 (executable)
@@ -51,9 +51,9 @@ for my $score (@$scores) {
        }
        if ($score->{'position'} == 1) {
                if ($score->{'chosen'}) {
-                       push @{$p->[$#$p]->{'songs'}}, '';
+                       push @{$p->[$#$p]->{'songs'}}, { song => -1, title => '' };
                } else {
-                       push @{$p->[$#$p]->{'songs'}}, $score->{'title'};
+                       push @{$p->[$#$p]->{'songs'}}, $score;
                }
                $p->[$#$p]->{'num_songs'}++;
        }