Fakultas Ilmu Komputer UI

Commit 6ffcfc91 authored by Farid Wajdi's avatar Farid Wajdi
Browse files

Fix course semester grouper

parent 5a70361d
......@@ -9,7 +9,7 @@ for (var i = 0; i < courses.length; i++) {
const courseTitle = courseNode.getElementsByTagName("a")[0].title
const courseUrl = courseNode.getElementsByTagName("a")[0].href
const courseId = courseUrl.slice(courseUrl.indexOf("id=") + 3)
const courseSemester = getCourseSemester(courseId)
const courseSemester = getCourseSemester(courseId, courseGroup)
if (!coursePerSemester.hasOwnProperty(courseSemester)) {
coursePerSemester[courseSemester] = []
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment