forked from c0de/BaseballBot
Save to database seperately from getting points
This commit is contained in:
parent
175b02536c
commit
49f2630e38
@ -84,8 +84,6 @@ class ProcessGuess:
|
|||||||
return 1000 - difference
|
return 1000 - difference
|
||||||
|
|
||||||
self.difference = difference
|
self.difference = difference
|
||||||
|
|
||||||
self.update_difference_value()
|
|
||||||
return self.difference
|
return self.difference
|
||||||
|
|
||||||
def get_difference_score(self):
|
def get_difference_score(self):
|
||||||
@ -111,7 +109,6 @@ class ProcessGuess:
|
|||||||
else:
|
else:
|
||||||
self.difference_score = -5
|
self.difference_score = -5
|
||||||
|
|
||||||
self.update_player_total_points()
|
|
||||||
return self.difference_score
|
return self.difference_score
|
||||||
|
|
||||||
def get_winner_loser(self):
|
def get_winner_loser(self):
|
||||||
@ -138,6 +135,8 @@ class ProcessGuess:
|
|||||||
|
|
||||||
difference = self.get_difference()
|
difference = self.get_difference()
|
||||||
difference_score = self.get_difference_score()
|
difference_score = self.get_difference_score()
|
||||||
|
self.update_difference_value()
|
||||||
|
self.update_player_total_points()
|
||||||
|
|
||||||
self.message += f"{guess.player.player_name} | {guess.guess} | {difference} | {difference_score} | {(guess.player.total_points + difference_score)}\n"
|
self.message += f"{guess.player.player_name} | {guess.guess} | {difference} | {difference_score} | {(guess.player.total_points + difference_score)}\n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user