diff --git a/objects/score.pyx b/objects/score.pyx index 83f30aa..429745d 100644 --- a/objects/score.pyx +++ b/objects/score.pyx @@ -223,7 +223,7 @@ class score: # No duplicates found. # Get right "completed" value - personalBest = glob.db.fetch("SELECT id, score FROM scores WHERE userid = %s AND beatmap_md5 = %s AND play_mode = %s AND completed = 3 LIMIT 1", [userID, self.fileMd5, self.gameMode]) + personalBest = glob.db.fetch("SELECT id, pp, score FROM scores WHERE userid = %s AND beatmap_md5 = %s AND play_mode = %s AND completed = 3 LIMIT 1", [userID, self.fileMd5, self.gameMode]) if personalBest is None: # This is our first score on this map, so it's our best score self.completed = 3 @@ -231,7 +231,7 @@ class score: self.oldPersonalBest = 0 else: # Compare personal best's score with current score - if self.score > personalBest["score"]: + if self.pp > personalBest["pp"]: # New best score self.completed = 3 self.rankedScoreIncrease = self.score-personalBest["score"]