]> git.sesse.net Git - ccbs/commitdiff
Set all songs to single expert per default (this will break when we go to DDREx,...
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Mar 2005 01:20:45 +0000 (01:20 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Mar 2005 01:20:45 +0000 (01:20 +0000)
html/do-start-round.pl

index ea6894e7126e88f5fcf66fa614baf75331cb3a77..00d94ff55e301709ce5abe8ad755e2e0abf562b0 100755 (executable)
@@ -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);
        }
 }