This commit is contained in:
Dominic Grimm 2023-03-05 14:43:40 +01:00
parent c32356b2bc
commit 487974a07c
No known key found for this signature in database
GPG key ID: 6F294212DEAAC530

View file

@ -114,15 +114,7 @@ async fn teachers(
.teacher_reports()
.await?
.into_iter()
.filter_map(|t| {
if t.long_name.starts_with("Abi-Aufsicht")
|| t.long_name == "SBBZ"
|| t.long_name == "N.N."
|| t.long_name == "Werkrealschule"
{
None
} else {
Some(User {
.map(|t| User {
username: {
let escaped = escape_username(&t.name);
match usernames.get_mut(&escaped) {
@ -139,8 +131,6 @@ async fn teachers(
first_name: t.fore_name,
last_name: escape_last_name(&t.long_name).to_string(),
})
}
})
.collect())
}