From 82bae772f0f789a49b403fb6e86bfa87b4b36e7f Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 2 Mar 2019 17:29:09 -0600 Subject: [PATCH] most played command now ordered by play time issue #68 --- Plugins/Stats/Commands/MostPlayed.cs | 2 +- Plugins/Web/StatsWeb/Views/Stats/Index.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Stats/Commands/MostPlayed.cs b/Plugins/Stats/Commands/MostPlayed.cs index f71e25a7a..fccbd5cb8 100644 --- a/Plugins/Stats/Commands/MostPlayed.cs +++ b/Plugins/Stats/Commands/MostPlayed.cs @@ -39,7 +39,7 @@ namespace IW4MAdmin.Plugins.Stats.Commands where stats.ServerId == serverId where client.Level != EFClient.Permission.Banned where client.LastConnection >= thirtyDaysAgo - orderby stats.Kills descending + orderby stats.TimePlayed descending select new { alias.Name, diff --git a/Plugins/Web/StatsWeb/Views/Stats/Index.cshtml b/Plugins/Web/StatsWeb/Views/Stats/Index.cshtml index 1ae050ccb..c76e6e1a9 100644 --- a/Plugins/Web/StatsWeb/Views/Stats/Index.cshtml +++ b/Plugins/Web/StatsWeb/Views/Stats/Index.cshtml @@ -1,4 +1,4 @@ -