From f6ffe810f9bedd91fc14ce0faa8c537f1c7f42bd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 16 Feb 2005 14:44:41 +0000 Subject: [PATCH] Chosen song can now be set. --- html/do-edit-scores.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/do-edit-scores.pl b/html/do-edit-scores.pl index a56563d..1ae1547 100755 --- a/html/do-edit-scores.pl +++ b/html/do-edit-scores.pl @@ -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); } } -- 2.39.2