Rework the UI
Fix Score Add Kiouze CSS Rework the tournaments API
This commit is contained in:
@@ -207,7 +207,7 @@ namespace LaDOSE.Business.Provider.ChallongProvider
|
||||
private const string RegexRanking = @"[R|r]anking.?#\w{3}";
|
||||
private const string DateRanking = @"^\[(\d{2}\/\d{2}\/\d{2})\]";
|
||||
private const string GameRanking = @"\-.(\w*)$";
|
||||
public async Task<List<Event>> GetEvents(List<int> idTournaments)
|
||||
public async Task<List<Event>> ParseEvent(List<int> idTournaments)
|
||||
{
|
||||
var result = new List<Event>();
|
||||
foreach (var idTournament in idTournaments)
|
||||
|
||||
@@ -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