aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Karlis S <[email protected]>2020-02-25 12:08:30 +0200
committerGravatar GitHub <[email protected]>2020-02-25 12:08:30 +0200
commit21ea3e012f29dd9a645b1678461e6444e5efb5b0 (patch)
tree14ac29c7588f4978f86ecba3a45be415ca893b0d
parentMerge remote-tracking branch 'origin/games-command' into games-command (diff)
Remove keys() from total_rating count (Games Cog)
Co-Authored-By: Thomas Petersson <[email protected]>
-rw-r--r--bot/seasons/evergreen/game.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py
index d378c34e..5f6846c2 100644
--- a/bot/seasons/evergreen/game.py
+++ b/bot/seasons/evergreen/game.py
@@ -277,7 +277,7 @@ limit 50;"""
# Add games name and rating, also attach URL to title
line += f"**[{game['name']}]({game['url']})**\n"
line += f"""{'{0:.2f}'.format(game['total_rating'] if 'total_rating' in game.keys() else 0)}/100 :star: (by {
- game['total_rating_count'] if 'total_rating_count' in game.keys() else '?'} users)"""
+ game['total_rating_count'] if 'total_rating_count' in game else '?'} users)"""
lines.append(line)