testing yuk

This commit is contained in:
Randa Firman Putra
2025-09-14 16:59:31 +07:00
parent 248fed0d0b
commit 60211ae829
63 changed files with 315 additions and 315 deletions

View File

@@ -22,7 +22,7 @@ export async function GET() {
);
}
// Group by tahun_angkatan and status_kuliah
// Kelompokkan berdasarkan tahun_angkatan dan status_kuliah
const groupedData = data.reduce((acc, item: any) => {
const tahun_angkatan = item.tahun_angkatan;
const status_kuliah = item.status_kuliah;
@@ -31,7 +31,7 @@ export async function GET() {
return acc;
}, {} as Record<string, number>);
// Convert to final format
// Konversi ke format akhir
const results: StatusData[] = Object.entries(groupedData).map(([key, jumlah]) => {
const [tahun_angkatan, status_kuliah] = key.split('-');
return {