forked from science-ation/science-ation
We must have a number of judging teams at least equal to the number
of times a project must be judged, to avoid assigning the same jteam to the same project
This commit is contained in:
parent
58e1b4a05e
commit
6d6dd8abb1
@ -279,6 +279,7 @@ for($k=0; $k<count($keys); $k++) {
|
|||||||
$jdiv_id = $keys[$k];
|
$jdiv_id = $keys[$k];
|
||||||
$c = count($jdiv[$jdiv_id]['projects']);
|
$c = count($jdiv[$jdiv_id]['projects']);
|
||||||
$t=ceil($c/$data['max_projects_per_team']*$data['times_judged']);
|
$t=ceil($c/$data['max_projects_per_team']*$data['times_judged']);
|
||||||
|
if($t < $data['times_judged']) $t = $data['times_judged'];
|
||||||
TRACE(" $jdiv_id has $c projects, requires $t judging teams\n");
|
TRACE(" $jdiv_id has $c projects, requires $t judging teams\n");
|
||||||
$jdiv[$jdiv_id]['num_jteams'] = $t;
|
$jdiv[$jdiv_id]['num_jteams'] = $t;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user