From c93c2299179099996c299487b7246fc244db5d5b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 5 Mar 2005 01:20:45 +0000 Subject: [PATCH] Set all songs to single expert per default (this will break when we go to DDREx, though..) --- html/do-start-round.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.39.2