Skip to content

Commit

Permalink
fix incorrect week numbers for undergrad calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
probablybenallen authored Apr 25, 2024
1 parent c91d335 commit bd00a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bd00a41

Please sign in to comment.