This commit is contained in:
depreciate 2019-02-27 20:29:54 +10:30
parent c59cc7ed8e
commit b6b5f4051b

View File

@ -156,9 +156,8 @@ def getMaxCombo(userID, gameMode):
:param gameMode: game mode number
:return: dictionary with result
"""
modeForDB = gameModes.getGameModeForDB(gameMode)
# Get stats
maxcombo = glob.db.fetch("""SELECT max_combo FROM scores WHERE userid = ? AND play_mode = {gm} ORDER BY max_combo DESC LIMIT 1""".format([userID], gm=modeForDB))
maxcombo = glob.db.fetch("""SELECT max_combo FROM scores WHERE userid = ? AND play_mode = ? ORDER BY max_combo DESC LIMIT 1""".format([userID], gameMode))
# Return stats + game rank
return maxcombo