aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Cam Caswell <[email protected]>2021-07-08 21:30:12 -0400
committerGravatar Cam Caswell <[email protected]>2021-07-09 14:02:38 -0400
commit0fe4255cc7450445d7aa426d6450ed92aa9e7516 (patch)
treed058d7409bf6d343ec8723aa975f7113130c59a9
parentMinor improvements to documentation (diff)
Reversed scoreboard so that winners are on top
-rw-r--r--bot/exts/evergreen/duck_game.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py
index bc33102f..13e6165f 100644
--- a/bot/exts/evergreen/duck_game.py
+++ b/bot/exts/evergreen/duck_game.py
@@ -247,7 +247,8 @@ class DuckGamesDirector(commands.Cog):
scores = sorted(
game.scores.items(),
- key=lambda item: item[1]
+ key=lambda item: item[1],
+ reverse=True,
)
scoreboard = "\n".join(f"{member.display_name}: {score}" for member, score in scores)