Skip to content

Commit a68651e

Browse files
committed
Fix grade parsing issue
The grade table was changed in Powerschool. This change will make sure that semester 1 grades can be properly found. Signed-off-by: Gary Kim <[email protected]>
1 parent 3d3dd3e commit a68651e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/saspowerschoolff.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function main_page() {
8585
for(let i = 0; i < $grade_rows.length; i++) {
8686
let $course;
8787
if(second_semester) {
88+
// TODO: Currently not working after 2019 Powerschool update. Needs to be updated.
8889
$course = $grade_rows.eq(i).children('td').eq(3).find("a[href^='scores.html?']");
8990
let first_grade = $grade_rows.eq(i).children('td').eq(2).find(`a[href^='scores.html?']`);
9091
if(first_grade.length === 1) {
@@ -93,7 +94,7 @@ function main_page() {
9394
}
9495
}
9596
} else {
96-
$course = $grade_rows.eq(i).children('td').eq(2).find("a[href^='scores.html?']");
97+
$course = $grade_rows.eq(i).find('td a[href^="scores.html"]').eq(0);
9798
}
9899
if($course.length === 1) {
99100
let temp = $course.parents().eq(1).children("td[align=left]").text().match(".*(?=Details)")[0];

0 commit comments

Comments
 (0)