]> git.sesse.net Git - ccbs/blobdiff - html/do-set-active-tournament.pl
Reset bigscreen on changed groups, not just changed tournaments.
[ccbs] / html / do-set-active-tournament.pl
index 297cc6c71ab59d4d79626a54532629bc2a4cca45..c27ebf5b18599445eab4c20d1f5d8bcdf32c52df 100755 (executable)
@@ -10,6 +10,7 @@ my $cgi = new CGI;
 my $tournament = $cgi->param('tournament');
 $dbh->{AutoCommit} = 0;
 
+$dbh->do('DELETE FROM bigscreen.active_groups');
 $dbh->do('DELETE FROM bigscreen.active_tournament');
 if ($tournament != -1) {
        $dbh->do('INSERT INTO bigscreen.active_tournament VALUES (?)', undef, $tournament);