wrong way round

This commit is contained in:
depreciate 2019-02-27 20:43:56 +10:30
parent 95234009d8
commit 5bc41f2c94

View File

@ -157,7 +157,7 @@ def getMaxCombo(userID, gameMode):
:return: dictionary with result
"""
# Get stats
maxcombo = glob.db.fetch("SELECT max_combo FROM scores WHERE userid = {gm} AND play_mode = %s ORDER BY max_combo DESC LIMIT 1".format(gm=gameMode), [userID])
maxcombo = glob.db.fetch("SELECT max_combo FROM scores WHERE userid = %s AND play_mode = {gm} ORDER BY max_combo DESC LIMIT 1".format(gm=gameMode), [userID])
# Return stats + game rank
return maxcombo