diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-14 17:34:14 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-14 17:35:34 +0200 |
| commit | 9876d989b52528574861ef44409a5b680e542340 (patch) | |
| tree | 763f0517114edbee346bf49b4f4e640b99d2cc21 /src/student-common.ts | |
| parent | d18d5f869d57d31c987b4b7fe0c7feae9aba8b2e (diff) | |
| download | bycs-sol-9876d989b52528574861ef44409a5b680e542340.tar.gz bycs-sol-9876d989b52528574861ef44409a5b680e542340.zip | |
remove groups
Diffstat (limited to 'src/student-common.ts')
| -rw-r--r-- | src/student-common.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/student-common.ts b/src/student-common.ts index a76a816..56dab43 100644 --- a/src/student-common.ts +++ b/src/student-common.ts @@ -5,23 +5,16 @@ import type { Graduation } from "./graduation-common.ts"; export class Student { id: number; name: string; - group: string; graduation: Graduation | null = null; - constructor(id: number, name: string, group: string) { + constructor(id: number, name: string) { this.id = id; this.name = name; - this.group = group; - } - - getGroup() { - return this.group; } /** static async fetchById(id: number) { let name = ""; - let group = ""; const res = await fetch(`/user/view.php?id=${id}&course=${getCourseId()}`); const doc = new DOMParser().parseFromString(await res.text(), "text/html"); @@ -32,11 +25,10 @@ export class Student { for (const card of cards) { if (card.querySelector("dt")!.textContent !== "Gruppe") continue; - group = card.querySelector("dd > a")!.textContent; break; } - return new Student(id, name, group); + return new Student(id, name); } */ } |
