Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
fix 21T1 starting date issue oops!!
Browse files Browse the repository at this point in the history
  • Loading branch information
spanishpear committed Feb 14, 2021
1 parent c8e2f58 commit ee6f225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion calare
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def add_classes(cal, offering_code):

show_tut = show_tut_input.startswith('y')

# ie 20T3 splits to 20 and T3
year = offering_code[:2]
term = offering_code[2:]
start_date = START_DATES.get(year).get(term)
Expand Down Expand Up @@ -205,4 +206,4 @@ if __name__ == "__main__":
print(f"Outputting to {filename}...")
output_file.writelines(c)

print("\nDone! Enjoy and please star this project on Github if it's been helpful!")
print("\nDone! Enjoy and please star this project on Github if it's been helpful!")
6 changes: 3 additions & 3 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"21": {
"T0": date(2021, 1, 4),
"T1": date(2021, 2, 8),
"T2": date(2021, 5, 31),
"T3": date(2021, 9, 13)
"T1": date(2021, 2, 14), # sunday before W1
"T2": date(2021, 5, 30),
"T3": date(2021, 9, 12)
}
}

0 comments on commit ee6f225

Please sign in to comment.