From 3de907164bafd1588a79844741074ac848d21922 Mon Sep 17 00:00:00 2001 From: jacobxu666 Date: Wed, 19 Aug 2026 17:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=AF=95=E5=8D=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=97=E8=A1=A8=E9=A1=B5=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=20countQuestions=20=E6=AD=BB=E4=BB=A3=E7=A0=81(?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E5=8F=91=E7=8E=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Haiku 4.5 --- src/app/parent/exams/page.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/app/parent/exams/page.tsx b/src/app/parent/exams/page.tsx index 92e441e..c6d25d3 100644 --- a/src/app/parent/exams/page.tsx +++ b/src/app/parent/exams/page.tsx @@ -18,15 +18,6 @@ const MONTH_LABEL: Record = { }; const MONTH_ORDER = [0, 9, 10, 11, 12, 1]; -function countQuestions(qs: string): number { - try { - const arr = JSON.parse(qs) as unknown[]; - return Array.isArray(arr) ? arr.length : 0; - } catch { - return 0; - } -} - export default async function ExamsAdmin() { const parent = await getSessionUser(); if (!parent) redirect("/login");