mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
handle team matches without match links
This commit is contained in:
parent
766d0333cd
commit
cc3ea78778
6 changed files with 6052 additions and 2743 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue