From 8b1ae594fdee4200759364fba8c308169f7b754b Mon Sep 17 00:00:00 2001 From: "alejandro.lara" Date: Tue, 30 Apr 2024 13:09:26 -0600 Subject: [PATCH] Cambio de hash --- rest/horarios.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rest/horarios.php b/rest/horarios.php index f2fe335..e2546a0 100644 --- a/rest/horarios.php +++ b/rest/horarios.php @@ -201,7 +201,7 @@ try{ }*/ $sguHash[] = array( - "hash"=>( trim($row["HoraInicio"]."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]) ), + "hash"=>( trim($row["HoraInicio"]."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]."|".$row["Carrera"]) ), "data"=>$row, "per"=>$per["periodo_id"] ); @@ -214,10 +214,10 @@ try{ $fecha_nueva = $row["FechaStr"]." ".$row["HoraInicio"]; $hora_fin_nueva = $row["HoraFin"]; if($debug){ - echo "
SELECT * FROM fi_reposicion_sgu('$fecha_orig', '".$hora_fin_nueva."','".$fecha_nueva."' ,'".$row["ClaveProfesor"]."', ".$per["periodo_id"].", ".$row["IdEspacio"].")"; + echo "
SELECT * FROM fi_reposicion_sgu('$fecha_orig', '".$hora_fin_nueva."','".$fecha_nueva."' ,'".$row["ClaveProfesor"]."', ".$per["periodo_id"].", ".$row["IdEspacio"].", ".$row["Carrera"].")"; }else{ - $db->query('SELECT * FROM fi_reposicion_sgu(:fecha_orig, :hora_fin, :fecha_rep, :prof, :per, :salon)', - [":fecha_orig"=>$fecha_orig, ":hora_fin"=>$hora_fin_nueva, ":fecha_rep"=>$fecha_nueva, ":prof"=>$row["ClaveProfesor"], ":per"=>$per["periodo_id"], ":salon"=>$row["IdEspacio"] ]); + $db->query('SELECT * FROM fi_reposicion_sgu(:fecha_orig, :hora_fin, :fecha_rep, :prof, :per, :salon, :carrera)', + [":fecha_orig"=>$fecha_orig, ":hora_fin"=>$hora_fin_nueva, ":fecha_rep"=>$fecha_nueva, ":prof"=>$row["ClaveProfesor"], ":per"=>$per["periodo_id"], ":salon"=>$row["IdEspacio"], ":carrera"=>$row["Carrera"] ]); $log_desc .="SELECT * FROM fi_reposicion_sgu($fecha_orig, ".$fecha_nueva.", ".$row["ClaveProfesor"].", ".$per["periodo_id"].") ## "; } }else{