Skip to content

Commit

Permalink
fix unable to fetch score
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Lu-none committed Nov 30, 2023
1 parent 949f87d commit 825744e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/connector/course_connector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class CourseConnector {
node = nodes[courseIds.indexWhere((element) => element.contains(courseId))+2];

classExtraInfoNodes = node.getElementsByTagName("td");
courseExtra.id= classExtraInfoNodes[0].text;
courseExtra.id= strQ2B(classExtraInfoNodes[0].text).replaceAll(RegExp(r"[\n| ]"), "");
courseExtra.name = classExtraInfoNodes[1].getElementsByTagName("a")[0].text;
courseExtra.openClass = classExtraInfoNodes[7].getElementsByTagName("a")[0].text;
courseExtra.category=classExtraInfoNodes[5].text;
Expand Down

0 comments on commit 825744e

Please sign in to comment.