for my $score (@$scores) {
if ($score->{'round'} != $round) {
$round = $score->{'round'};
- push @rounds, { round => $round, parallels => [] };
+ push @rounds, { round => $round, parallels => [], locked => 0 };
$parallel = -1;
}
my $p = $rounds[$#rounds]->{'parallels'};
for my $r (0..$#rounds-1) {
$rounds[$r]->{'locked'} = 1;
}
-$rounds[$#rounds]->{'locked'} = 0;
# If there have been no rounds, check out the number of participants; if not, check the
# number of qualified from the last round