From 946d826dc49df1a0b42cca7ba3c4729ff4019f76 Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 10 Nov 2022 21:05:21 -0600 Subject: [PATCH] Only update the guess for the current game --- GhostBallBot/game/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GhostBallBot/game/game.py b/GhostBallBot/game/game.py index 2bd31b9..c1edeca 100644 --- a/GhostBallBot/game/game.py +++ b/GhostBallBot/game/game.py @@ -217,8 +217,8 @@ class GameManager: ) Guess.update({"guess": value}).where( - # (Guess.game_id == self.game.game_id) - # & + (Guess.game.game_id == self.game.game_id) + & (Guess.player_id == self.message.author.id) ).execute()