diff options
| author | 2020-02-25 12:08:30 +0200 | |
|---|---|---|
| committer | 2020-02-25 12:08:30 +0200 | |
| commit | 21ea3e012f29dd9a645b1678461e6444e5efb5b0 (patch) | |
| tree | 14ac29c7588f4978f86ecba3a45be415ca893b0d | |
| parent | Merge 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.py | 2 |
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) |