Use correct model class

This commit is contained in:
c0de 2022-10-03 20:08:42 -05:00
parent 311dcac071
commit 59b8c673e0

View File

@ -29,7 +29,7 @@ class GameModel(BaseModel):
class GuessModel(BaseModel): class GuessModel(BaseModel):
player_id = IntegerField(primary_key=True) player_id = IntegerField(primary_key=True)
game_id = ForeignKeyField(Game, backref="guesses") game_id = ForeignKeyField(GameModel, backref="guesses")
player_name = CharField() player_name = CharField()
guess = IntegerField() guess = IntegerField()