From 59d1dc4afba35fc8e01006a9870608621c81c466 Mon Sep 17 00:00:00 2001 From: c0de Date: Fri, 9 Dec 2022 21:34:47 -0600 Subject: [PATCH] generate uuid on the model --- game/guess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/guess.py b/game/guess.py index 1446e7d..22d80d1 100644 --- a/game/guess.py +++ b/game/guess.py @@ -39,7 +39,7 @@ class GuessManager(BaseGameManager): # Create the guess (or allow us to say update successful) _, created = Guess.get_or_create( - guess_id=uuid.uuid4(), game_id=self.game.game_id, player_id=player.player_id + game_id=self.game.game_id, player_id=player.player_id ) Guess.update({"guess": value}).where(