aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/student-prod.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/student-prod.ts b/src/student-prod.ts
index 0dcbc71..5a1673e 100644
--- a/src/student-prod.ts
+++ b/src/student-prod.ts
@@ -26,12 +26,13 @@ async function _fetchStudents() {
const doc = new DOMParser().parseFromString(await res.text(), "text/html");
const table = doc.querySelector("tbody")!;
const fetchedStudents: Array<Student> = [];
- table.querySelectorAll("tr").forEach((row) => {
+ const rows = table.querySelectorAll("tr");
+ rows.forEach((row) => {
if (row.classList.contains("emptyrow")) return;
const roleCell = row.querySelector(".c4")!;
// TODO(muhq): Is this locale dependent?
- if (roleCell.innerHTML.includes("Lehrer")) {
+ if (roleCell.textContent.includes("Lehrer")) {
return;
}