Rework the UI

Fix Score
Add Kiouze CSS
Rework the tournaments API
This commit is contained in:
2022-03-22 00:14:46 +01:00
parent 3a86fdbdf4
commit 0150402ca6
17 changed files with 890 additions and 280 deletions

View File

@@ -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)

View File

@@ -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();

View File

@@ -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; }
}