From b86bb3bc9a24b1b70c86df8b4163d8cb4f7f2677 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 2 Aug 2006 08:07:51 +0000 Subject: [PATCH] - Fix most issues with projects being judged multiple times. This should fix all issues EXCEPT that the timetable scheduler may assign two judging teams to the same project at the same time. I will fix that soon. But everything else should now work. --- admin/judges_sa.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/admin/judges_sa.php b/admin/judges_sa.php index 05db205..c70c624 100644 --- a/admin/judges_sa.php +++ b/admin/judges_sa.php @@ -193,7 +193,14 @@ function jdiv_compute_cost($annealer, $bucket_id, $ids) /* Score 25pts for multiple divs/cats */ $cost += (count($t_div) - 1) * 25; $cost += (count($t_cat) - 1) * 25; - + + /* Score +200 pts for each duplicate project this team is judging, we + * really don't want a jteam judging the same project twice */ + for($x=0; $x