forked from c0de/BaseballBot
Fix database query
This commit is contained in:
parent
49f2630e38
commit
7818109a9c
@ -58,8 +58,8 @@ class ProcessGuess:
|
|||||||
def update_difference_value(self):
|
def update_difference_value(self):
|
||||||
"""Store the difference between the player's guessed value and the pitch_value"""
|
"""Store the difference between the player's guessed value and the pitch_value"""
|
||||||
Guess.update({"difference": self.difference}).where(
|
Guess.update({"difference": self.difference}).where(
|
||||||
(Guess.game.game_id == self.game_manager.game.game_id)
|
(Guess.game == self.game_manager.game.game_id)
|
||||||
& (Guess.player.player_id == self.guess.player.player_id)
|
& (Guess.player == self.guess.player.player_id)
|
||||||
& (Guess.guess_id == self.guess.guess_id)
|
& (Guess.guess_id == self.guess.guess_id)
|
||||||
).execute()
|
).execute()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user