From 1da273c48b2f12d77b18a60abc848f6834c2ef88 Mon Sep 17 00:00:00 2001 From: CyberFlame Date: Fri, 7 Jun 2024 09:00:14 +1200 Subject: [PATCH] Re-implement past paper dynamic limit Signed-off-by: CyberFlame --- src/nzqa_lookup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nzqa_lookup.ts b/src/nzqa_lookup.ts index 78232c1..3f0dfb5 100644 --- a/src/nzqa_lookup.ts +++ b/src/nzqa_lookup.ts @@ -35,7 +35,7 @@ export async function lookup( let year: number = currentYear - 2; var yearDefault: boolean = true; - if (paperYear && paperYear >= /* currentYear - 3 */ 2012 && paperYear <= currentYear) { + if (paperYear && paperYear >= currentYear - 3 && paperYear <= currentYear) { year = paperYear; yearDefault = false; }