Skip to content

Commit 0f34280

Browse files
authored
Dev/upgrade handbook url (#164)
* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command. * Fixed eslint warnings
1 parent b9576b5 commit 0f34280

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

commands/handbook.js

Lines changed: 5 additions & 5 deletions
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,
@@ -74,7 +74,7 @@ module.exports = {
7474
value:
7575
raw_requirements.replace(
7676
/[A-Z]{4}[0-9]{4}/g,
77-
`[$&](${handbookURL}$&)`,
77+
`[$&](${handbookURL}/$&)`,
7878
) || "None",
7979
inline: true,
8080
},
@@ -86,16 +86,16 @@ module.exports = {
8686
{
8787
name: "Equivalent Courses",
8888
value:
89-
Object.keys(equivalents)
90-
.map((course) => `[${course}](${course})`)
89+
Object.keys(exclusions)
90+
.map((course) => `[${course}](${handbookURL}/${course})`)
9191
.join(", ") || "None",
9292
inline: true,
9393
},
9494
{
9595
name: "Exclusion Courses",
9696
value:
9797
Object.keys(exclusions)
98-
.map((course) => `[${course}](${handbookURL}${course})`)
98+
.map((course) => `[${course}](${handbookURL}/${course})`)
9999
.join(", ") || "None",
100100
inline: true,
101101
},

config/handbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"apiURL": "https://circlesapi.csesoc.app",
3-
"handbookURL": "https://www.handbook.unsw.edu.au/undergraduate/courses/2022/"
3+
"handbookURL": "https://www.handbook.unsw.edu.au/undergraduate/courses/2024"
44
}

0 commit comments

Comments
 (0)