X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-edit-scores.pl;h=898d5dbc4f9c0bacadae2db46cfc5d75f9aa2e84;hp=4c83b7ce538ece6a26a019cbbb8825f83684cf29;hb=9b92b979d4647472f0beefae30c08855a3284966;hpb=c45d49b7b660344d9b5fddd52fdadd7ccdbc23c4 diff --git a/html/do-edit-scores.pl b/html/do-edit-scores.pl index 4c83b7c..898d5db 100755 --- a/html/do-edit-scores.pl +++ b/html/do-edit-scores.pl @@ -4,6 +4,8 @@ use ccbs; use strict; use warnings; +ccbs::admin_only(); + my $dbh = ccbs::db_connect(); my $cgi = new CGI; @@ -72,10 +74,12 @@ for my $p ($cgi->param()) { } } +$dbh->do('UPDATE bigscreen.active_groups SET last_updated=now() WHERE tournament=? AND round=? AND parallel=?', + undef, $tournament, $round, $group); $dbh->do('NOTIFY scores'); $dbh->commit; $dbh->disconnect; -ccbs::print_see_other('show-tournament.pl?id=' . $tournament); +ccbs::print_see_other('show-tournament.pl?id=' . $tournament . '#round' . $round);