From 28748c34bfefb0f935ff77d1af39b852dd561a41 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Fri, 2 Oct 2020 21:56:01 +0200 Subject: [PATCH] debug and add history --- cogs/sacrifice/sacrifice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/sacrifice/sacrifice.py b/cogs/sacrifice/sacrifice.py index 78579d1..80dd812 100644 --- a/cogs/sacrifice/sacrifice.py +++ b/cogs/sacrifice/sacrifice.py @@ -137,7 +137,7 @@ class SacrificeCog(commands.Cog): return 0, 0 else: user_history = history[discord_id] - results = [match.result for match in user_history] + results = [match["result"] for match in user_history] return sum(results), len(results) async def win(self, winner_id: str, looser_id: str) -> None: