From 115138f9f99777ca8326983155db7bc3201235ce Mon Sep 17 00:00:00 2001 From: Nikolay Kochulin Date: Wed, 10 Jul 2019 18:17:39 +0300 Subject: [PATCH] Make leaderboard entries be seperated by newlines --- JetKarmaBot/Commands/LeaderboardCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JetKarmaBot/Commands/LeaderboardCommand.cs b/JetKarmaBot/Commands/LeaderboardCommand.cs index 922eeee..eddc576 100644 --- a/JetKarmaBot/Commands/LeaderboardCommand.cs +++ b/JetKarmaBot/Commands/LeaderboardCommand.cs @@ -37,7 +37,7 @@ namespace JetKarmaBot.Commands var awardTypeId = awardTypeIdQuery.First(); var awardType = db.AwardTypes.Find(awardTypeId); - response = string.Format(currentLocale["jetkarmabot.leaderboard.specifictext"], awardType.Symbol) + "\n" + string.Join(' ', db.Awards + response = string.Format(currentLocale["jetkarmabot.leaderboard.specifictext"], awardType.Symbol) + "\n" + string.Join('\n', db.Awards .Where(x => x.ChatId == args.Message.Chat.Id && x.AwardTypeId == awardTypeId) .GroupBy(x => x.ToId) .Select(x => new {UserId = x.Key, Amount = x.Sum(y => y.Amount)})