From 61af1b937f78e41efed6ff110d544289f04c08d5 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Mon, 9 Dec 2024 01:56:12 +0000 Subject: [PATCH] use len over .count method for death count --- utils/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/models.py b/utils/models.py index 1b6cd40..365d928 100644 --- a/utils/models.py +++ b/utils/models.py @@ -135,7 +135,7 @@ class Player(Model): if not summary: raise ValueError("You must fetch the steam_profile_summary before creating an embed.") - death_count = (await self.get_deaths()).count() + death_count = len(await self.get_deaths()) embed = Embed( title="Player",