generate the uuid on the model

This commit is contained in:
2022-12-09 21:34:32 -06:00
parent ad70870d8e
commit 7577e3afee
2 changed files with 4 additions and 5 deletions

View File

@@ -4,8 +4,6 @@
# pylint: disable=missing-module-docstring
import uuid
from database.models import GameModel as Game
from game.base import BaseGameManager
@@ -28,6 +26,6 @@ class NewGameManager(BaseGameManager):
self.is_running = True
# game.pitch_value is unknown at the start of the game
self.game = Game.create(game_id=uuid.uuid4(), server_id=self.message.channel.id)
self.game = Game.create(server_id=self.message.channel.id)
await self.message.channel.send("Send me your guesses with !guess <number>")