From: Steinar H. Gunderson Date: Sat, 5 Mar 2005 01:20:45 +0000 (+0000) Subject: Set all songs to single expert per default (this will break when we go to DDREx,... X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=c93c2299179099996c299487b7246fc244db5d5b;ds=sidebyside Set all songs to single expert per default (this will break when we go to DDREx, though..) --- 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); } }