Clear active rounds on changing active tournament.
[ccbs] / html / do-set-active-tournament.pl
index 297cc6c..4405e42 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);