7 my $dbh = ccbs::db_connect();
10 my $tournament = $cgi->param('tournament');
11 $dbh->{AutoCommit} = 0;
13 $dbh->do('DELETE FROM bigscreen.active_groups');
14 $dbh->do('DELETE FROM bigscreen.active_tournament');
15 if ($tournament != -1) {
16 $dbh->do('INSERT INTO bigscreen.active_tournament VALUES (?)', undef, $tournament);
19 # we don't have triggers in place yet, notify manually
20 $dbh->do('NOTIFY active_tournament');
23 ccbs::print_see_other('set-active-tournament.pl');