forked from c0de/BaseballBot
Use correct model class
This commit is contained in:
parent
311dcac071
commit
59b8c673e0
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user