From 0abb98f2db41f9b349565d740664be002875a88c Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Mon, 18 Feb 2019 07:04:03 -0500 Subject: [PATCH] ?????????? --- objects/rxscore.pyx | 5 ++--- objects/score.pyx | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/objects/rxscore.pyx b/objects/rxscore.pyx index fb701be..80f5152 100644 --- a/objects/rxscore.pyx +++ b/objects/rxscore.pyx @@ -206,7 +206,7 @@ class score: self.rank, self.date) - def setCompletedStatus(self, b = None): + def setCompletedStatus(self): """ Set this score completed status and rankedScoreIncrease """ @@ -216,8 +216,7 @@ class score: userID = userUtils.getID(self.playerName) # Create beatmap object - if b is None: - b = beatmap.beatmap(self.fileMd5, 0) + b = beatmap.beatmap(self.fileMd5, 0) # Make sure we don't have another score identical to this one duplicate = glob.db.fetch("SELECT id FROM scores_relax WHERE userid = %s AND beatmap_md5 = %s AND play_mode = %s AND time = %s AND score = %s LIMIT 1", [userID, self.fileMd5, self.gameMode, self.date, self.score]) diff --git a/objects/score.pyx b/objects/score.pyx index 0541176..3a51173 100644 --- a/objects/score.pyx +++ b/objects/score.pyx @@ -205,7 +205,7 @@ class score: self.rank, self.date) - def setCompletedStatus(self, b = None): + def setCompletedStatus(self): """ Set this score completed status and rankedScoreIncrease """ @@ -215,8 +215,7 @@ class score: userID = userUtils.getID(self.playerName) # Create beatmap object - if b is None: - b = beatmap.beatmap(self.fileMd5, 0) + b = beatmap.beatmap(self.fileMd5, 0) # Make sure we don't have another score identical to this one duplicate = glob.db.fetch("SELECT id FROM scores WHERE userid = %s AND beatmap_md5 = %s AND play_mode = %s AND score = %s LIMIT 1", [userID, self.fileMd5, self.gameMode, self.score])