Add PlayerModel to create_models
This commit is contained in:
parent
1a62747da1
commit
e9d80e5e62
@ -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()])
|
||||
|
Loading…
Reference in New Issue
Block a user