Skip to content

Commit 35f1f3b

Browse files
authored
Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)
* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command. * Fixed eslint warnings * Fixed equivalent courses urls being listed
1 parent 0f34280 commit 35f1f3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commands/handbook.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
// study_level,
4949
// school,
5050
// campus,
51-
// equivalents,
51+
equivalents,
5252
raw_requirements,
5353
exclusions,
5454
// handbook_note,
@@ -80,13 +80,13 @@ module.exports = {
8080
},
8181
{
8282
name: "Offering Terms",
83-
value: terms.join(", "),
83+
value: terms.join(", ") || "None",
8484
inline: true,
8585
},
8686
{
8787
name: "Equivalent Courses",
8888
value:
89-
Object.keys(exclusions)
89+
Object.keys(equivalents)
9090
.map((course) => `[${course}](${handbookURL}/${course})`)
9191
.join(", ") || "None",
9292
inline: true,

0 commit comments

Comments
 (0)