mirror of https://github.com/ppy/osu
Replace `:P2` with `:0.00%`
This commit is contained in:
parent
698408bb6d
commit
ddf9317bec
|
@ -32,7 +32,7 @@ public class ScoreInfo : IHasFiles<ScoreFileInfo>, IHasPrimaryKey, ISoftDelete,
|
||||||
public double Accuracy { get; set; }
|
public double Accuracy { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string DisplayAccuracy => Accuracy == 1 ? "100%" : $"{Accuracy:P2}";
|
public string DisplayAccuracy => Accuracy == 1 ? "100%" : $"{Accuracy:0.00%}";
|
||||||
|
|
||||||
[JsonProperty(@"pp")]
|
[JsonProperty(@"pp")]
|
||||||
public double? PP { get; set; }
|
public double? PP { get; set; }
|
||||||
|
|
|
@ -44,7 +44,7 @@ private int rank
|
||||||
public decimal Accuracy;
|
public decimal Accuracy;
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string DisplayAccuracy => $"{Accuracy:P2}";
|
public string DisplayAccuracy => $"{Accuracy:0.00%}";
|
||||||
|
|
||||||
[JsonProperty(@"play_count")]
|
[JsonProperty(@"play_count")]
|
||||||
public int PlayCount;
|
public int PlayCount;
|
||||||
|
|
Loading…
Reference in New Issue