9 my $dbh = ccbs::db_connect();
12 my $tournament = $cgi->param('tournament');
13 $dbh->{AutoCommit} = 0;
15 $dbh->do('DELETE FROM bigscreen.active_groups');
16 $dbh->do('DELETE FROM bigscreen.active_tournament');
17 if ($tournament != -1) {
18 $dbh->do('INSERT INTO bigscreen.active_tournament VALUES (?)', undef, $tournament);
21 # we don't have triggers in place yet, notify manually
22 $dbh->do('NOTIFY active_tournament');
25 ccbs::print_see_other('set-active-tournament.pl');