X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-start-round.pl;h=00d94ff55e301709ce5abe8ad755e2e0abf562b0;hp=ea6894e7126e88f5fcf66fa614baf75331cb3a77;hb=c93c2299179099996c299487b7246fc244db5d5b;hpb=79445f894ef099042925039c30fbd83c5b7fc9ea diff --git a/html/do-start-round.pl b/html/do-start-round.pl index ea6894e..00d94ff 100755 --- a/html/do-start-round.pl +++ b/html/do-start-round.pl @@ -90,7 +90,7 @@ for my $g (1..$num_groups) { $dbh->do('INSERT INTO roundrandomsongs (tournament, round, parallel, song) VALUES (?,?,?,?)', undef, $tournament, $round, $g, $ref->{'song'}); - $dbh->do('INSERT INTO scores SELECT tournament,round,parallel,player,?,?,NULL,NULL,\'f\',NULL FROM roundparticipation WHERE tournament=? AND round=? AND parallel=?', undef, + $dbh->do('INSERT INTO scores SELECT tournament,round,parallel,player,?,?,\'single\',\'expert\',\'f\',NULL FROM roundparticipation WHERE tournament=? AND round=? AND parallel=?', undef, $s, $ref->{'song'}, $tournament, $round, $g); } } @@ -98,7 +98,7 @@ for my $g (1..$num_groups) { # Add empty "score" records for the chosen songs. for my $g (1..$num_groups) { for my $s (1..$num_chosen) { - $dbh->do('INSERT INTO scores SELECT tournament,round,parallel,player,?,NULL,NULL,NULL,\'t\',NULL FROM roundparticipation WHERE tournament=? AND round=? AND parallel=?', undef, + $dbh->do('INSERT INTO scores SELECT tournament,round,parallel,player,?,NULL,\'single\',\'expert\',\'t\',NULL FROM roundparticipation WHERE tournament=? AND round=? AND parallel=?', undef, $s + $num_random, $tournament, $round, $g); } }