Fixed another error in scoreboard.
This commit is contained in:
parent
4d0436c5a9
commit
af38d5af76
@ -121,7 +121,7 @@ class Scoreboard:
|
|||||||
Returns:
|
Returns:
|
||||||
bool: True if score was added, False if not
|
bool: True if score was added, False if not
|
||||||
"""
|
"""
|
||||||
position = self.checkHighScore()
|
position = self.check_high_score()
|
||||||
if position is None:
|
if position is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ class Scoreboard:
|
|||||||
configService.read_local_config()
|
configService.read_local_config()
|
||||||
|
|
||||||
# Get high scores
|
# Get high scores
|
||||||
scores = board.getHighScores()
|
scores = board.get_high_scores()
|
||||||
|
|
||||||
# Check if any score is greater than zero
|
# Check if any score is greater than zero
|
||||||
return any(score['score'] > 0 for score in scores)
|
return any(score['score'] > 0 for score in scores)
|
||||||
@ -246,7 +246,7 @@ class Scoreboard:
|
|||||||
configService.read_local_config()
|
configService.read_local_config()
|
||||||
|
|
||||||
# Get high scores
|
# Get high scores
|
||||||
scores = board.getHighScores()
|
scores = board.get_high_scores()
|
||||||
|
|
||||||
# Filter out scores with zero points
|
# Filter out scores with zero points
|
||||||
validScores = [score for score in scores if score['score'] > 0]
|
validScores = [score for score in scores if score['score'] > 0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user