From e9d80e5e626e533cb1e629c575a5046c80f91851 Mon Sep 17 00:00:00 2001 From: c0de Date: Tue, 25 Oct 2022 23:18:52 -0500 Subject: [PATCH] Add PlayerModel to create_models --- GhostBallBot/database/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GhostBallBot/database/models.py b/GhostBallBot/database/models.py index 284085a..390e693 100644 --- a/GhostBallBot/database/models.py +++ b/GhostBallBot/database/models.py @@ -75,8 +75,9 @@ class GuessModel(BaseModel): difference = IntegerField(null=True) date_guessed = DateTimeField(null=True) + def create_models(): """Create database tables""" with database: - database.create_tables([GameModel, GuessModel]) + database.create_tables([GameModel, GuessModel, PlayerModel()])