Rework the UI
Fix Score Add Kiouze CSS Rework the tournaments API
This commit is contained in:
@@ -128,6 +128,10 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
id
|
||||
}
|
||||
}
|
||||
},
|
||||
entrant {
|
||||
id,
|
||||
isDisqualified
|
||||
}
|
||||
placement
|
||||
}
|
||||
@@ -161,11 +165,11 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
}
|
||||
}
|
||||
|
||||
var res= standings.Select(x => new Result()
|
||||
var res= standings.Where(s=>s.entrant.isDisqualified != true).Select(x => new Result()
|
||||
{
|
||||
Tournament = tournament,
|
||||
TournamentId = tournament.Id,
|
||||
|
||||
|
||||
PlayerId = PlayerService.GetIdBySmash(x.player),
|
||||
Rank = x.placement
|
||||
}).ToList();
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
|
||||
public StatType stats { get; set; }
|
||||
|
||||
public EntrantType entrant { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ParticipantType
|
||||
@@ -67,6 +69,7 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
public string name { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class EventType
|
||||
{
|
||||
public int id { get; set; }
|
||||
@@ -83,7 +86,7 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
|
||||
public bool? isDisqualified { get; set; }
|
||||
public List<ParticipantType> participants { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user