diff options
author | 2020-03-02 18:44:40 +0200 | |
---|---|---|
committer | 2020-03-02 18:44:40 +0200 | |
commit | 9e0662a1adbbcf291d3b935dd08dbf7cc68a6e16 (patch) | |
tree | 7d15df21964818f044f08e725d64cb4a3b6c532a | |
parent | (Games Cog): Added comments about offsets, use keyword parameters for get_com... (diff) |
(Games Cog): Fixed companies list generating code (.games <genre> command).
-rw-r--r-- | bot/seasons/evergreen/game.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py index 08068c23..b2114da8 100644 --- a/bot/seasons/evergreen/game.py +++ b/bot/seasons/evergreen/game.py @@ -289,8 +289,7 @@ class Games(Cog): rating = ", ".join(f"{AgeRatingCategories(age['category']).name} {AgeRatings(age['rating']).name}" for age in data["age_ratings"]) if "age_ratings" in data else "?" - companies = ", ".join(comp["company"]["name"] for comp in data["involved_companies"]) \ - if "involved_companies" in data else "?" + companies = [c["company"]["name"] for c in data["involved_companies"]] if "involved_companies" in data else "?" # Create formatting for template page formatting = { @@ -303,7 +302,7 @@ class Games(Cog): "platforms": ", ".join(platform["name"] for platform in data["platforms"]) if "platforms" in data else "?", "status": GameStatus(data["status"]).name if "status" in data else "?", "age_ratings": rating, - "made_by": companies, + "made_by": ", ".join(companies), "storyline": data["storyline"] if "storyline" in data else "" } page = GAME_PAGE.substitute(formatting) |