!rank bugfix

This commit is contained in:
runebaas 2017-12-28 22:58:29 +01:00
parent d8b34f867b
commit cb9c7c97dc
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -55,7 +55,7 @@ namespace Geekbot.net.Commands
var messageList = _redis.HashGetAll($"{Context.Guild.Id}:{type}");
var sortedList = messageList.OrderByDescending(e => e.Value).ToList();
var guildMessages = (int) sortedList.First().Value;
sortedList.RemoveAt(0);
if (type == "Messages") sortedList.RemoveAt(0);
var highscoreUsers = new Dictionary<RankUserPolyfill, int>();
var listLimiter = 1;