mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 18:53:21 +08:00
Don't show matches on schedule which don't have teams set
This commit is contained in:
parent
bed967b456
commit
81f39c2f39
@ -75,7 +75,7 @@ namespace osu.Game.Tournament.Screens.Schedule
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Width = 0.4f,
|
Width = 0.4f,
|
||||||
ChildrenEnumerable = ladder.Pairings
|
ChildrenEnumerable = ladder.Pairings
|
||||||
.Where(p => p.Completed.Value)
|
.Where(p => p.Completed.Value && p.Team1.Value != null && p.Team2.Value != null)
|
||||||
.OrderByDescending(p => p.Date.Value)
|
.OrderByDescending(p => p.Date.Value)
|
||||||
.Take(8)
|
.Take(8)
|
||||||
.Select(p => new SchedulePairing(p))
|
.Select(p => new SchedulePairing(p))
|
||||||
@ -85,7 +85,7 @@ namespace osu.Game.Tournament.Screens.Schedule
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Width = 0.6f,
|
Width = 0.6f,
|
||||||
ChildrenEnumerable = ladder.Pairings
|
ChildrenEnumerable = ladder.Pairings
|
||||||
.Where(p => !p.Completed.Value)
|
.Where(p => !p.Completed.Value && p.Team1.Value != null && p.Team2.Value != null)
|
||||||
.OrderBy(p => p.Date.Value)
|
.OrderBy(p => p.Date.Value)
|
||||||
.Take(8)
|
.Take(8)
|
||||||
.Select(p => new SchedulePairing(p))
|
.Select(p => new SchedulePairing(p))
|
||||||
|
Loading…
Reference in New Issue
Block a user