use len over .count method for death count
All checks were successful
Build and Push Docker Image / build (push) Successful in 16s
All checks were successful
Build and Push Docker Image / build (push) Successful in 16s
This commit is contained in:
parent
60f10d2d68
commit
61af1b937f
@ -135,7 +135,7 @@ class Player(Model):
|
|||||||
if not summary:
|
if not summary:
|
||||||
raise ValueError("You must fetch the steam_profile_summary before creating an embed.")
|
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(
|
embed = Embed(
|
||||||
title="Player",
|
title="Player",
|
||||||
|
Reference in New Issue
Block a user