1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2019-11-04 10:17:40 +01:00
parent 7f6db83b1d
commit 03694d6443
2 changed files with 2 additions and 2 deletions

View file

@ -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}"

View file

@ -1,4 +1,4 @@
semantic = "5.0a81"
semantic = "5.0a82"
if __name__ == "__main__":
print(semantic)