From c230a6209e7ab9e97ce91c172b08ad7be68b1bf8 Mon Sep 17 00:00:00 2001 From: 1-rambo Date: Wed, 6 Mar 2024 11:31:48 +0800 Subject: [PATCH] test --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7b11d37..dca289a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,11 +32,11 @@ const allContests: ContestsGroup = []; const contests = await getContests(); for (const c of contests) { // 练习 - // if (c.beginDate === null || c.endDate === null) continue; + if (c.beginDate === null || c.endDate === null) continue; // 尚未截止 - // if (+c.endDate > +TODAY) continue; + if (+c.endDate > +TODAY) continue; // 过期 - // if (+c.beginDate < +new Date(CURRENT_SEMESTER, 0, 1)) continue; + if (+c.beginDate < +new Date(CURRENT_SEMESTER, 0, 1)) continue; const problems = await getProblemsOfContest(c.id); const briefInfos: BriefProblemInfo[] = [];