From 825744e093448bd60586e9dfedaa66fe6064168c Mon Sep 17 00:00:00 2001 From: Location <59411633+James-Lu-none@users.noreply.github.com> Date: Thu, 30 Nov 2023 21:21:02 +0800 Subject: [PATCH] fix unable to fetch score --- lib/src/connector/course_connector.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/connector/course_connector.dart b/lib/src/connector/course_connector.dart index 48381d22..758e165b 100644 --- a/lib/src/connector/course_connector.dart +++ b/lib/src/connector/course_connector.dart @@ -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;