Fix database query

This commit is contained in:
c0de 2022-11-10 22:10:58 -06:00
parent 49f2630e38
commit 7818109a9c

View File

@ -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()