X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=html%2Fdo-edit-scores.pl;h=1ae15471634267a1ff51290d9395222c0d9e81a8;hb=2f10e145dc593d3ab351306951980658724f7f45;hp=a56563dea7bd17cf1761ff1012451c362fb8b7c6;hpb=4cf5c1b0601dba1dd8db180326ab8bb6629ca2d9;p=ccbs 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); } }