mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:43:22 +08:00
Make SoloScoreInfo.EndedAt
non-null
Seems to already be the case for databased scores. Will be assured by https://github.com/ppy/osu-web/issues/9116. I've updated the `osu-score-statistics-processor` with this consideration.
This commit is contained in:
parent
222a50c457
commit
566bad0b5f
@ -54,7 +54,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
public DateTimeOffset? StartedAt { get; set; }
|
public DateTimeOffset? StartedAt { get; set; }
|
||||||
|
|
||||||
[JsonProperty("ended_at")]
|
[JsonProperty("ended_at")]
|
||||||
public DateTimeOffset? EndedAt { get; set; }
|
public DateTimeOffset EndedAt { get; set; }
|
||||||
|
|
||||||
[JsonProperty("mods")]
|
[JsonProperty("mods")]
|
||||||
public APIMod[] Mods { get; set; } = Array.Empty<APIMod>();
|
public APIMod[] Mods { get; set; } = Array.Empty<APIMod>();
|
||||||
@ -128,7 +128,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
MaxCombo = MaxCombo,
|
MaxCombo = MaxCombo,
|
||||||
Rank = Rank,
|
Rank = Rank,
|
||||||
Statistics = Statistics,
|
Statistics = Statistics,
|
||||||
Date = EndedAt ?? DateTimeOffset.Now,
|
Date = EndedAt,
|
||||||
Hash = HasReplay ? "online" : string.Empty, // TODO: temporary?
|
Hash = HasReplay ? "online" : string.Empty, // TODO: temporary?
|
||||||
Mods = mods,
|
Mods = mods,
|
||||||
PP = PP,
|
PP = PP,
|
||||||
|
Loading…
Reference in New Issue
Block a user