handle team matches without match links

This commit is contained in:
Robin Appelman 2025-04-20 15:28:31 +02:00
commit cc3ea78778
6 changed files with 6052 additions and 2743 deletions

View file

@ -298,6 +298,9 @@ pub enum MatchResult {
score_opponent: u8,
},
ByeWeek,
Unknown {
opponent: TeamRef,
},
}
impl MatchResult {
@ -305,7 +308,7 @@ impl MatchResult {
match self {
MatchResult::Played { id, .. } => Some(*id),
MatchResult::Pending { id, .. } => Some(*id),
MatchResult::ByeWeek => None,
_ => None,
}
}
}