From 03694d64439d8d9e6bf8eeef7913ac7fbb40d120 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Nov 2019 10:17:40 +0100 Subject: [PATCH] 5.0a82 --- royalnet/packs/royal/commands/trivia.py | 2 +- royalnet/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/royalnet/packs/royal/commands/trivia.py b/royalnet/packs/royal/commands/trivia.py index 3fdb1174..c7254743 100644 --- a/royalnet/packs/royal/commands/trivia.py +++ b/royalnet/packs/royal/commands/trivia.py @@ -47,7 +47,7 @@ class TriviaCommand(Command): elif arg == "scores": trivia_scores = await asyncify(data.session.query(self.alchemy.TriviaScore).all) strings = ["🏆 [b]Trivia Leaderboards[/b]\n"] - for index, ts in sorted(trivia_scores, key=lambda ts: -ts.correct_rate): + for index, ts in enumerate(sorted(trivia_scores, key=lambda ts: -ts.correct_rate)): if index > 3: index = 3 strings.append(f"{self._medal_emojis[index]} {ts.royal.username}" diff --git a/royalnet/version.py b/royalnet/version.py index 0dddc9c3..1318b8c1 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1,4 +1,4 @@ -semantic = "5.0a81" +semantic = "5.0a82" if __name__ == "__main__": print(semantic)