From 0694bd130156974e53ee03a5a9f802a9cb0208de Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 9 Jun 2022 13:50:58 -0500 Subject: [PATCH] fix bug with loading top stats for individual servers --- WebfrontCore/Controllers/Client/Legacy/StatsController.cs | 1 + WebfrontCore/Views/Client/Statistics/Index.cshtml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WebfrontCore/Controllers/Client/Legacy/StatsController.cs b/WebfrontCore/Controllers/Client/Legacy/StatsController.cs index 9f6595a2..9786e7fb 100644 --- a/WebfrontCore/Controllers/Client/Legacy/StatsController.cs +++ b/WebfrontCore/Controllers/Client/Legacy/StatsController.cs @@ -61,6 +61,7 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers } ViewBag.TotalRankedClients = await _serverDataViewer.RankedClientsCountAsync(matchedServerId, token); + ViewBag.ServerId = matchedServerId; return View("~/Views/Client/Statistics/Index.cshtml", _manager.GetServers() .Select(server => new ServerInfo diff --git a/WebfrontCore/Views/Client/Statistics/Index.cshtml b/WebfrontCore/Views/Client/Statistics/Index.cshtml index bd00b621..de43d62f 100644 --- a/WebfrontCore/Views/Client/Statistics/Index.cshtml +++ b/WebfrontCore/Views/Client/Statistics/Index.cshtml @@ -43,6 +43,7 @@ { + - + }