From 292db8133da8488b8c04a36a9916921faa9f5b67 Mon Sep 17 00:00:00 2001 From: c0de Date: Sat, 10 Dec 2022 12:31:19 -0600 Subject: [PATCH] clear total points --- game/reset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/reset.py b/game/reset.py index 5c59e67..94d2626 100644 --- a/game/reset.py +++ b/game/reset.py @@ -4,7 +4,7 @@ # pylint: disable=missing-module-docstring,too-few-public-methods -from database.models import GuessModel as Guess +from database.models import PlayerModel as Player from game.base import BaseGameManager @@ -16,7 +16,7 @@ class ResetManager(BaseGameManager): self.commands.append(("reset", self.reset)) async def reset(self): - """Reset command purges all guesses""" - Guess.delete().where(True).execute() + """Reset command purges all players (removes total points)""" + Player.delete().where(True).execute() return await self.message.channel.send("ok")