aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-04 09:19:55 +0200
committerGravatar ks123 <[email protected]>2020-03-04 09:19:55 +0200
commitc5ec3e129cad08a3b67cc396e445d92bdfac560e (patch)
tree28bd290bd49476848afaea9c61c41dcd753e3d57
parent(Games Cog): Fixed companies list generating code (.games <genre> command). (diff)
(Games Cog): Fixed get_games_list calling formatting at L192
-rw-r--r--bot/seasons/evergreen/game.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py
index b2114da8..7a7dc02f 100644
--- a/bot/seasons/evergreen/game.py
+++ b/bot/seasons/evergreen/game.py
@@ -189,8 +189,7 @@ class Games(Cog):
# Offset must be random, due otherwise we will get always same result (offset show in which position should
# API start returning result)
try:
- games = await self.get_games_list(amount, self.genres[genre],
- offset=random.randint(0, 150))
+ games = await self.get_games_list(amount, self.genres[genre], offset=random.randint(0, 150))
except KeyError:
possibilities = "`, `".join(difflib.get_close_matches(genre, self.genres))
await ctx.send(f"Invalid genre `{genre}`. {f'Maybe you meant `{possibilities}`?' if possibilities else ''}")