Skip to content

Commit 9cc6596

Browse files
committed
OrdenTandas: do not insert "Grado III" tandas on non-rsce contests
1 parent 2296ce7 commit 9cc6596

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

agility/server/database/classes/OrdenTandas.php

+5
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ function insert_remove($rsce,$tipo,$orden,$oper) {
208208
$orden = $this->removeFromList($orden,$item['ID']);
209209
return $orden;
210210
}
211+
if( ($rsce!=0) && ($item['Grado']==='GIII') ) {
212+
// remove every "Grado III" tandas on non RSCE contests
213+
$orden = $this->removeFromList($orden,$item['ID']);
214+
return $orden;
215+
}
211216
if ($oper==true) $orden = $this->insertIntoList($orden,$item['ID']);
212217
else $orden = $this->removeFromList($orden,$item['ID']);
213218
}

0 commit comments

Comments
 (0)