7 my $dbh = ccbs::db_connect();
10 my $tournament = $cgi->param('tournament');
11 my $round = $cgi->param('round');
12 my $parallel = $cgi->param('parallel');
14 $dbh->{AutoCommit} = 0;
16 $dbh->do('DELETE FROM bigscreen.active_groups WHERE tournament=? AND round=? AND parallel=?', undef,
17 $tournament, $round, $parallel);
18 if ($cgi->param('show') eq 'true') {
19 $dbh->do('INSERT INTO bigscreen.active_groups (tournament, round, parallel) VALUES (?,?,?)',
20 undef, $tournament, $round, $parallel);
23 $dbh->do('NOTIFY active_groups');
28 ccbs::print_see_other('show-tournament.pl?id=' . $tournament);