@@ -779,7 +779,12 @@ private function getListaPerros($s=0,$t=0,$pendientes=0){
779
779
$ perrosmanga =$ os ->getData (false ); // false: do not include extra team information row
780
780
}
781
781
// OK ya tenemos la lista ordenada de los perros de cada manga
782
- // Ahora vamos a sacar la lista por cada tanda
782
+ // en selectiva RSCE se salta en 3 alturas, pero hay perros de cinco, con lo que hay que "hacer trampas"
783
+ $ heights =Competitions::getHeights ($ this ->prueba ->ID ,$ this ->jornada ->ID ,$ tanda ['Manga ' ]);
784
+ if ( ($ heights ==3 ) && ($ tanda ['Categoria ' ]==='L ' )) $ tanda ['Categoria ' ]='XL ' ;
785
+ if ( ($ heights ==3 ) && ($ tanda ['Categoria ' ]==='S ' )) $ tanda ['Categoria ' ]='ST ' ;
786
+ if ( ($ heights ==4 ) && ($ tanda ['Categoria ' ]==='L ' )) $ tanda ['Categoria ' ]='XL ' ; // idem para 4 alturas
787
+ // Ahora vamos a sacar la lista por cada tanda
783
788
foreach ($ perrosmanga ['rows ' ] as &$ perro ) {
784
789
// si hay categoria distinta de "-" hay que comprobar si el perro pertenece a la tanda
785
790
if ($ tanda ['Categoria ' ]!="- " ) {
@@ -819,7 +824,13 @@ private function getListaPerros($s=0,$t=0,$pendientes=0){
819
824
function getData ($ s ,$ t ,$ p ) {
820
825
return $ this ->getListaPerros ($ s ,-($ t ),$ p );
821
826
}
822
-
827
+
828
+ /**
829
+ * @param {integer} $s id de session
830
+ * @param {integer} $t id de tanda
831
+ * @return array
832
+ * @throws Exception
833
+ */
823
834
function getDataByTanda ($ s ,$ t ) {
824
835
$ page =http_request ("page " ,"i " ,0 );
825
836
$ rows =http_request ("rows " ,"i " ,0 );
0 commit comments