Improve ranking parsing
Improve Smash.gg parsing Fix useless stuff Fix
This commit is contained in:
@@ -285,8 +285,8 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
|
||||
Player1Id = PlayerService.GetIdBySmash(x.slots[0].entrant.participants[0]),
|
||||
Player2Id = PlayerService.GetIdBySmash(x.slots[1].entrant.participants[0]),
|
||||
Player1Score = x.slots[0].standing.stats.score.value,
|
||||
Player2Score = x.slots[1].standing.stats.score.value,
|
||||
Player1Score = x.slots[0].standing.stats.score.value.HasValue ? x.slots[0].standing.stats.score.value.Value : 0,
|
||||
Player2Score = x.slots[1].standing.stats.score.value.HasValue ? x.slots[1].standing.stats.score.value.Value : 0,
|
||||
Round = x.round ?? 0,
|
||||
}).ToList();
|
||||
tournament.Sets = tset;
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
public class ScoreType
|
||||
{
|
||||
public string label { get; set; }
|
||||
public int value { get; set; }
|
||||
public int? value { get; set; }
|
||||
public string displayValue { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user