From 21ea3e012f29dd9a645b1678461e6444e5efb5b0 Mon Sep 17 00:00:00 2001 From: Karlis S <45097959+ks129@users.noreply.github.com> Date: Tue, 25 Feb 2020 12:08:30 +0200 Subject: Remove keys() from total_rating count (Games Cog) Co-Authored-By: Thomas Petersson --- bot/seasons/evergreen/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') 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) -- cgit v1.2.3