Skip to content

Commit

Permalink
8.01 override (again)
Browse files Browse the repository at this point in the history
It seems that the Registrar updated the 8.01 timings from the correct
ones to incorrect ones; implement an override to restore the old
timings.
  • Loading branch information
psvenk committed Sep 24, 2023
1 parent d7f1f3e commit 56f21b0
Showing 1 changed file with 47 additions and 6 deletions.
53 changes: 47 additions & 6 deletions scrapers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,55 @@
import utils

OVERRIDES = {
"2.00B": {
"b": [],
"tb": True
}
"8.01": {
"lectureRawSections": [
"26-152/MW/0/9-10.30/F/0/9",
"26-152/MW/0/10.30-12/F/0/11",
"26-152/MW/0/1-2.30/F/0/1",
"26-152/MW/0/3-4.30/F/0/3",
"26-152/TR/0/9-10.30/F/0/10",
"26-152/TR/0/11-12.30/F/0/12",
"26-152/TR/0/3-4.30/F/0/4"
],
"lectureSections": [
[
[[2, 3], [62, 3], [122, 2]],
"26-152"
],
[
[[5, 3], [65, 3], [126, 2]],
"26-152"
],
[
[[10, 3], [70, 3], [130, 2]],
"26-152"
],
[
[[14, 3], [74, 3], [134, 2]],
"26-152"
],
[
[[32, 3], [92, 3], [124, 2]],
"26-152"
],
[
[[36, 3], [96, 3], [128, 2]],
"26-152"
],
[
[[44, 3], [104, 3], [136, 2]],
"26-152"
]
],
},
# "2.00B": {
# "b": [],
# "tb": True,
# },
# "22.05": {
# "l": [[[[33, 3], [93, 3]], "24-121"]],
# "r": [[[[124, 2]], "24-121"]],
# }
# },
}


Expand All @@ -38,7 +79,7 @@ def run():
courses[course].update(info)

term_info = utils.get_term_info()
now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
obj = {
"termInfo": term_info,
"lastUpdated": now,
Expand Down

0 comments on commit 56f21b0

Please sign in to comment.