feat: keep undergraduate exams independent of course terms

This commit is contained in:
Codex
2026-10-14 23:19:11 +08:00
parent 48367b8273
commit 141436f545
9 changed files with 419 additions and 99 deletions
+3 -1
View File
@@ -5,5 +5,7 @@ enum SupportedSchool {
const SupportedSchool(this.id, this.label, this.description);
final String id, label, description;
static SupportedSchool fromId(String id) => values.firstWhere(
(s) => s.id == id, orElse: () => throw const FormatException('学校标识无效'));
(s) => s.id == id,
orElse: () => throw const FormatException('学校标识无效'),
);
}