mirror of https://github.com/ppy/osu
Rename variable
This commit is contained in:
parent
b9ec179713
commit
baed0ef3ba
|
@ -118,7 +118,7 @@ protected override APIRequest FetchScores(Action<IEnumerable<APIRoomScoreInfo>>
|
|||
Accuracy = 0.98,
|
||||
TotalScore = 987654,
|
||||
TotalAttempts = 13,
|
||||
CompletedAttempts = 5
|
||||
CompletedBeatmaps = 5
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@ public class APIRoomScoreInfo : ScoreInfo
|
|||
public int TotalAttempts { get; set; }
|
||||
|
||||
[JsonProperty("completed")]
|
||||
public int CompletedAttempts { get; set; }
|
||||
public int CompletedBeatmaps { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ protected override IEnumerable<LeaderboardScoreStatistic> GetStatistics(ScoreInf
|
|||
{
|
||||
new LeaderboardScoreStatistic(FontAwesome.fa_crosshairs, "Accuracy", string.Format(model.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", model.Accuracy)),
|
||||
new LeaderboardScoreStatistic(FontAwesome.fa_refresh, "Total Attempts", ((APIRoomScoreInfo)model).TotalAttempts.ToString()),
|
||||
new LeaderboardScoreStatistic(FontAwesome.fa_check, "Completed Beatmaps", ((APIRoomScoreInfo)model).CompletedAttempts.ToString()),
|
||||
new LeaderboardScoreStatistic(FontAwesome.fa_check, "Completed Beatmaps", ((APIRoomScoreInfo)model).CompletedBeatmaps.ToString()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue