From 5bc41f2c9416400e846c3ba2a0d5228b3f14d70a Mon Sep 17 00:00:00 2001 From: depreciate Date: Wed, 27 Feb 2019 20:43:56 +1030 Subject: [PATCH] wrong way round --- ripple/userUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ripple/userUtils.py b/ripple/userUtils.py index d252524..580563b 100644 --- a/ripple/userUtils.py +++ b/ripple/userUtils.py @@ -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