feat: keep undergraduate exams independent of course terms
This commit is contained in:
@@ -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('学校标识无效'),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user