diff options
author | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-12-05 01:52:04 +0100 |
---|---|---|
committer | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-12-05 01:52:04 +0100 |
commit | 9f23c0145e7a8118033e31ef1cc915a7e7f42de8 (patch) | |
tree | 494ed2eeaac6144463d02b18ee676dc4d59d1d91 /minecrafttrivia/utils.py | |
parent | 5c1651f902f0e8553d1e19feaacd53e32ec2d558 (diff) | |
download | RedCog-MinecraftTrivia-9f23c0145e7a8118033e31ef1cc915a7e7f42de8.tar.gz RedCog-MinecraftTrivia-9f23c0145e7a8118033e31ef1cc915a7e7f42de8.tar.bz2 RedCog-MinecraftTrivia-9f23c0145e7a8118033e31ef1cc915a7e7f42de8.zip |
config opts
Diffstat (limited to 'minecrafttrivia/utils.py')
-rw-r--r-- | minecrafttrivia/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minecrafttrivia/utils.py b/minecrafttrivia/utils.py index 8bb4730..89f650d 100644 --- a/minecrafttrivia/utils.py +++ b/minecrafttrivia/utils.py @@ -17,7 +17,7 @@ async def get_participants(reactions: typing.List[discord.Reaction]) -> typing.L def format_leaderboard(points: typing.List[typing.Tuple[int, typing.Tuple[typing.Union[discord.User, int], int]]]) -> str: - return "\n".join(f"**{rank + 1}.** {user.mention if hasattr(user, 'mention') else '<@' + str(user) + '>'} - {points}" for rank, (user, points) in points) + return "\n".join(f"**{rank + 1}.** {user.mention if hasattr(user, 'mention') else '<@' + str(user) + '>'} - {points}" for rank, (user, points) in points[:20]) _T = typing.TypeVar("_T", discord.User, int) |