From bd00a419420469d235b3ed95d81f3dd902b30691 Mon Sep 17 00:00:00 2001 From: Ben Allen <26507833+probablybenallen@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:19:16 +0100 Subject: [PATCH] fix incorrect week numbers for undergrad calendar --- src/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calendar.ts b/src/calendar.ts index 5a1ff44..42d5da7 100644 --- a/src/calendar.ts +++ b/src/calendar.ts @@ -167,7 +167,7 @@ export class Semester2B implements Period { if (calendarType == CalendarType.UNDERGRADUATE || calendarType == CalendarType.POSTGRADUATE) { if (week <= 12) { - name = `S2/${week - 3} (Teaching Week ${week - 3})`; + name = `S2/${week - 1} (Teaching Week ${week - 1})`; } else if (week == 13) { name = `S2/${week - 1} (Revision Week)` } else {