Skip to content

Commit e40c612

Browse files
committed
update types
1 parent 3c646f6 commit e40c612

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/data/courses.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"credits": 0.5,
66
"description": "Introduction to programming and problem solving. Fundamental concepts of object-oriented programming including objects, classes, variables, control flow, arrays, and recursion.",
77
"prereq": null,
8+
"prereqRaw": null,
89
"precludes": []
910
},
1011
{
@@ -13,6 +14,7 @@
1314
"credits": 0.5,
1415
"description": "Continuation of COMP 1405. Inheritance, polymorphism, interfaces, exceptions, generics, and an introduction to commonly used data structures.",
1516
"prereq": { "kind": "course", "code": "COMP 1405" },
17+
"prereqRaw": null,
1618
"precludes": []
1719
},
1820
{
@@ -21,6 +23,7 @@
2123
"credits": 0.5,
2224
"description": "Propositional and predicate logic, sets, relations, functions, proof techniques including mathematical induction, and an introduction to combinatorics and graph theory.",
2325
"prereq": null,
26+
"prereqRaw": null,
2427
"precludes": []
2528
},
2629
{
@@ -29,6 +32,7 @@
2932
"credits": 0.5,
3033
"description": "Introduction to systems-level programming in C. Memory management, pointers, data representation, the compilation toolchain, and basic operating system interfaces.",
3134
"prereq": { "kind": "course", "code": "COMP 1406" },
35+
"prereqRaw": null,
3236
"precludes": []
3337
},
3438
{
@@ -37,6 +41,7 @@
3741
"credits": 0.5,
3842
"description": "Abstract data types: stacks, queues, deques, priority queues, lists, trees, and graphs. Sorting, searching, and algorithm analysis using asymptotic notation.",
3943
"prereq": { "kind": "course", "code": "COMP 2401" },
44+
"prereqRaw": null,
4045
"precludes": []
4146
},
4247
{
@@ -51,6 +56,7 @@
5156
{ "kind": "course", "code": "COMP 2401" }
5257
]
5358
},
59+
"prereqRaw": null,
5460
"precludes": []
5561
},
5662
{
@@ -93,6 +99,7 @@
9399
}
94100
]
95101
},
102+
"prereqRaw": null,
96103
"precludes": []
97104
}
98105
]

src/types/course.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export interface Course {
1111
credits: number; // e.g. 0.5
1212
description: string;
1313
prereq: Prereq | null;
14+
prereqRaw?: string; // raw string from calendar, populated by scraper
1415
precludes: string[]; // course codes
1516
}

0 commit comments

Comments
 (0)