]> git.sesse.net Git - ccbs/commitdiff
Clear active rounds on changing active tournament.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 14:07:14 +0000 (14:07 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 14:07:14 +0000 (14:07 +0000)
html/do-set-active-tournament.pl

index 297cc6c71ab59d4d79626a54532629bc2a4cca45..4405e4270c02b67c4eb11df39cd6760a8c5488eb 100755 (executable)
@@ -10,6 +10,7 @@ my $cgi = new CGI;
 my $tournament = $cgi->param('tournament');
 $dbh->{AutoCommit} = 0;
 
+$dbh->do('DELETE FROM bigscreen.active_rounds');
 $dbh->do('DELETE FROM bigscreen.active_tournament');
 if ($tournament != -1) {
        $dbh->do('INSERT INTO bigscreen.active_tournament VALUES (?)', undef, $tournament);