aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/game.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-14 12:34:30 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-14 12:34:30 -0400
commit92c33d625068b9b39564dbf4fb9f6c1102711955 (patch)
tree40ce3e18ff8df18cb09ca2c3b2c7f00fa7e5811a /bot/exts/evergreen/game.py
parentchore: Break up the HelpSession.build_pages method (diff)
chore: Refactor more code to follow our style guide
Diffstat (limited to 'bot/exts/evergreen/game.py')
-rw-r--r--bot/exts/evergreen/game.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/evergreen/game.py b/bot/exts/evergreen/game.py
index 6f01d81c..43f64be7 100644
--- a/bot/exts/evergreen/game.py
+++ b/bot/exts/evergreen/game.py
@@ -374,8 +374,10 @@ class Games(Cog):
release_date = dt.utcfromtimestamp(data["first_release_date"]).date() if "first_release_date" in data else "?"
# Create Age Ratings value
- rating = ", ".join(f"{AgeRatingCategories(age['category']).name} {AgeRatings(age['rating']).name}"
- for age in data["age_ratings"]) if "age_ratings" in data else "?"
+ rating = ", ".join(
+ f"{AgeRatingCategories(age['category']).name} {AgeRatings(age['rating']).name}"
+ for age in data["age_ratings"]
+ ) if "age_ratings" in data else "?"
companies = [c["company"]["name"] for c in data["involved_companies"]] if "involved_companies" in data else "?"