]> git.sesse.net Git - ccbs/commitdiff
Chosen song can now be set.
authorSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 14:44:41 +0000 (14:44 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 14:44:41 +0000 (14:44 +0000)
html/do-edit-scores.pl

index a56563dea7bd17cf1761ff1012451c362fb8b7c6..1ae15471634267a1ff51290d9395222c0d9e81a8 100755 (executable)
@@ -32,6 +32,9 @@ for my $p ($cgi->param()) {
        } elsif ($p =~ /^difficulty(\d+)-(\d+)/) {
                $dbh->do('UPDATE scores SET difficulty=? WHERE tournament=? AND round=? AND parallel=? AND player=? AND songnumber=?', undef,
                        $val, $tournament, $round, $group, $1, $2);
+       } elsif ($p =~ /^song(\d+)-(\d+)/) {
+               $dbh->do('UPDATE scores SET song=? WHERE tournament=? AND round=? AND parallel=? AND player=? AND songnumber=? AND chosen=\'t\'', undef,
+                       $val, $tournament, $round, $group, $1, $2);
        }
 }