|
|
@@ -36,6 +36,8 @@ export async function GET(request: NextRequest) {
|
|
|
const endDate = searchParams.get('endDate');
|
|
|
const periodId = searchParams.get('periodId');
|
|
|
|
|
|
+/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
+
|
|
|
// Construir filtros
|
|
|
const whereClause: any = {
|
|
|
studentId: user.student.id,
|
|
|
@@ -104,6 +106,8 @@ export async function GET(request: NextRequest) {
|
|
|
const justifiedCount = attendanceRecords.filter(r => r.status === 'JUSTIFIED').length;
|
|
|
const attendanceRate = totalRecords > 0 ? Math.round((presentCount / totalRecords) * 100) : 0;
|
|
|
|
|
|
+/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
+
|
|
|
// Estadísticas por sección
|
|
|
const sectionStats = attendanceRecords.reduce((acc, record) => {
|
|
|
const sectionId = record.sectionId;
|