This commit is contained in:
Glax 2024-12-12 22:48:46 +01:00
parent 4040b5845c
commit afcc2cacaf

View File

@ -129,8 +129,8 @@ public partial class Server
float latest = requestParameters.TryGetValue("language", out string? parameter) switch float latest = requestParameters.TryGetValue("language", out string? parameter) switch
{ {
true => float.Parse(manga.Value.mangaConnector.GetChapters(manga.Value, parameter).Max().chapterNumber), true => manga.Value.mangaConnector.GetChapters(manga.Value, parameter).Max().chapterNumber,
false => float.Parse(manga.Value.mangaConnector.GetChapters(manga.Value).Max().chapterNumber) false => manga.Value.mangaConnector.GetChapters(manga.Value).Max().chapterNumber
}; };
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.OK, latest); return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.OK, latest);
} }