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