X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-set-active-round.pl;h=4f8caafe682ecae02f0c50338509dd275079d550;hp=c98a478dc9a1320804cde5020167e50506fdcb58;hb=09ae4d8636130d4c86ab3f8df8f823482f948f97;hpb=9c78e37258ab59892b8032be8ed2265d2ad2f587 diff --git a/html/do-set-active-round.pl b/html/do-set-active-round.pl index c98a478..4f8caaf 100755 --- a/html/do-set-active-round.pl +++ b/html/do-set-active-round.pl @@ -10,14 +10,15 @@ my $cgi = new CGI; my $tournament = $cgi->param('tournament'); my $round = $cgi->param('round'); my $parallel = $cgi->param('parallel'); +my $num_machines = $cgi->param('nummachines'); $dbh->{AutoCommit} = 0; $dbh->do('DELETE FROM bigscreen.active_groups WHERE tournament=? AND round=? AND parallel=?', undef, $tournament, $round, $parallel); if ($cgi->param('show') eq 'true') { - $dbh->do('INSERT INTO bigscreen.active_groups (tournament, round, parallel, last_updated) VALUES (?,?,?,now())', - undef, $tournament, $round, $parallel); + $dbh->do('INSERT INTO bigscreen.active_groups (tournament, round, parallel, num_machines, last_updated) VALUES (?,?,?,?,now())', + undef, $tournament, $round, $parallel, $num_machines); } $dbh->do('NOTIFY active_groups');