Skip to content

Commit

Permalink
[F] Add country code for standings
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Jan 12, 2025
1 parent 37cce62 commit 89b64cc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Client/iRLeagueApiCore.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<OutputType>Library</OutputType>
<TargetFrameworks>net8.0</TargetFrameworks>
<PackageId>iRLeagueApiCore.Client</PackageId>
<Version>0.14.3</Version>
<Version>0.14.4</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<PackageDescription>This package contains shared objects for all members of the iRLeagueDatabase-iRLeagueApi stack</PackageDescription>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ public class StandingRowModel
[DataMember]
public int LastIrating { get; set; }
[DataMember]
public string? CountryCode { get; set; }
[DataMember]
public IEnumerable<StandingResultRowModel?> ResultRows { get; set; } = Array.Empty<StandingResultRowModel>();
}
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<OutputType>Library</OutputType>
<TargetFramework>net8.0</TargetFramework>
<PackageId>iRLeagueApiCore.Common</PackageId>
<Version>0.14.3</Version>
<Version>0.14.4</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ protected async Task<IEnumerable<StandingsModel>> AlignStandingResultRows(long s
TotalPoints = standingResultRow.ScoredResultRow.TotalPoints,
IsScored = standingResultRow.IsScored,
}).ToList(),
CountryCode = standingRow.ResultRows.Count != 0
? standingRow.ResultRows.OrderBy(x => x.ScoredResultRow.ScoredSessionResult.ScoredEventResult.Event.Date).Last().ScoredResultRow.CountryCode
: null,
}).ToList(),
};

Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Server/iRLeagueApiCore.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>0.14.3</Version>
<Version>0.14.4</Version>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueDatabaseCore/iRLeagueDatabaseCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<PackageId>iRLeagueDatabaseCore</PackageId>
<Version>0.14.3</Version>
<Version>0.14.4</Version>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

Expand Down

0 comments on commit 89b64cc

Please sign in to comment.