b
This commit is contained in:
parent
6df638449f
commit
81b44e19fe
|
@ -206,7 +206,7 @@ class score:
|
|||
self.rank,
|
||||
self.date)
|
||||
|
||||
def setCompletedStatus(self):
|
||||
def setCompletedStatus(self, b = None):
|
||||
"""
|
||||
Set this score completed status and rankedScoreIncrease
|
||||
"""
|
||||
|
@ -215,6 +215,10 @@ class score:
|
|||
# Get userID
|
||||
userID = userUtils.getID(self.playerName)
|
||||
|
||||
# Create beatmap object
|
||||
if b is None:
|
||||
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])
|
||||
if duplicate is not None:
|
||||
|
|
|
@ -205,7 +205,7 @@ class score:
|
|||
self.rank,
|
||||
self.date)
|
||||
|
||||
def setCompletedStatus(self):
|
||||
def setCompletedStatus(self, b = None):
|
||||
"""
|
||||
Set this score completed status and rankedScoreIncrease
|
||||
"""
|
||||
|
@ -214,6 +214,10 @@ class score:
|
|||
# Get userID
|
||||
userID = userUtils.getID(self.playerName)
|
||||
|
||||
# Create beatmap object
|
||||
if b is None:
|
||||
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])
|
||||
if duplicate is not None:
|
||||
|
|
Reference in New Issue
Block a user