mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Update tournament migration logic to check for null Country
This commit is contained in:
@ -22,7 +22,8 @@ namespace osu.Game.Tournament.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The player's country.
|
/// The player's country.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Country? Country { get; set; }
|
[JsonProperty("country_code")]
|
||||||
|
public Country Country { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The player's global rank, or null if not available.
|
/// The player's global rank, or null if not available.
|
||||||
|
@ -186,7 +186,9 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
var playersRequiringPopulation = ladder.Teams
|
var playersRequiringPopulation = ladder.Teams
|
||||||
.SelectMany(t => t.Players)
|
.SelectMany(t => t.Players)
|
||||||
.Where(p => string.IsNullOrEmpty(p.Username) || p.Rank == null).ToList();
|
.Where(p => string.IsNullOrEmpty(p.Username)
|
||||||
|
|| p.Country == default
|
||||||
|
|| p.Rank == null).ToList();
|
||||||
|
|
||||||
if (playersRequiringPopulation.Count == 0)
|
if (playersRequiringPopulation.Count == 0)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user