diff --git a/export/supervisor_excel.php b/export/supervisor_excel.php index d7e2036..5dad877 100644 --- a/export/supervisor_excel.php +++ b/export/supervisor_excel.php @@ -48,7 +48,10 @@ $data = $db->query( FROM horario NATURAL JOIN horario_profesor NATURAL JOIN profesor - JOIN fechas ON EXTRACT(DOW FROM fechas.registro_fecha_ideal) = horario_dia + JOIN fechas + ON EXTRACT(DOW FROM fechas.registro_fecha_ideal) = horario_dia + AND fechas.registro_fecha_ideal >= horario_fecha_inicio::date + AND (horario_fecha_fin IS NULL OR fechas.registro_fecha_ideal < horario_fecha_fin::date) NATURAL JOIN salon_view_mat JOIN facultad ON facultad.facultad_id = COALESCE(horario.facultad_id, 0) diff --git a/horarios_historicos.php b/horarios_historicos.php index ea4e512..2d1fbc8 100644 --- a/horarios_historicos.php +++ b/horarios_historicos.php @@ -186,7 +186,7 @@ profesores: [], async buscarHorarios(profesor_clave) { - // if existe la clave del profesor + // if existe la clave del profesor if (!this.profesores.find(profesor => profesor.profesor_clave === profesor_clave)) { this.horarios = [] return