forked from science-ation/science-ation
- Ignore jdiv 0 in the annealer and in the check. jdiv 0 is what all unassigned divs/cats get,
and if they're unassigned we don't want to schedule them. - Fix a typo in the language selection
This commit is contained in:
parent
6454f86aa9
commit
3a1b4cca15
@ -271,6 +271,9 @@ $jdiv = array();
|
||||
TRACE("Loading Judging Division Configuration and Projects...\n");
|
||||
$q=mysql_query("SELECT * FROM judges_jdiv");
|
||||
while($r=mysql_fetch_object($q)) {
|
||||
/* Ignore jdiv 0 (all unassigned div/cats) */
|
||||
if($r->jdiv_id == 0) continue;
|
||||
|
||||
$jdiv[$r->jdiv_id]['config'][] = array('div' => $r->projectdivisions_id,
|
||||
'cat' => $r->projectcategories_id,
|
||||
'lang' => $r->lang);
|
||||
@ -455,7 +458,7 @@ while($r=mysql_fetch_object($q))
|
||||
while($r2=mysql_fetch_object($q2))
|
||||
$divprefs[$r2->projectdivisions_id]=$r2->val-3;
|
||||
|
||||
$langperfs = array();
|
||||
$langprefs = array();
|
||||
$q3=mysql_query("SELECT * from judges_languages WHERE judges_id='$r->id'");
|
||||
while($r3=mysql_fetch_object($q3))
|
||||
$langprefs[]=$r3->languages_lang;
|
||||
|
@ -91,6 +91,9 @@ function judges_scheduler_check_judges()
|
||||
$jdiv = array();
|
||||
$q=mysql_query("SELECT * FROM judges_jdiv ORDER BY jdiv_id");
|
||||
while($r=mysql_fetch_object($q)) {
|
||||
/* Ignore any div/cat with jdiv 0 */
|
||||
if($r->jdiv_id == 0) continue;
|
||||
|
||||
$d = $r->projectdivisions_id;
|
||||
$c = $r->projectcategories_id;
|
||||
$l = $r->lang;
|
||||
|
Loading…
Reference in New Issue
Block a user