From ccf655d5299995d4adaecf037a9f46e5ea04a635 Mon Sep 17 00:00:00 2001 From: depreciate Date: Sun, 3 Feb 2019 23:28:50 +1030 Subject: [PATCH] when you push the wronf change --- ripple/userUtils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ripple/userUtils.py b/ripple/userUtils.py index 11a794e..5156b42 100644 --- a/ripple/userUtils.py +++ b/ripple/userUtils.py @@ -25,7 +25,7 @@ def getBeatmapTime(beatmapID): return p -def incrementPlaytime(userID, gameMode=0, length=0, mode): +def incrementPlaytime(userID, gameMode=0, length=0): modeForDB = gameModes.getGameModeForDB(gameMode) result = glob.db.fetch("SELECT playtime_{gm} as playtime FROM users_stats WHERE id = %s".format(gm=modeForDB), [userID]) if result is not None: @@ -792,6 +792,7 @@ def incrementReplaysWatched(userID, gameMode): "UPDATE users_stats SET replays_watched_{mode}=replays_watched_{mode}+1 WHERE id = %s LIMIT 1".format( mode=mode), [userID]) + def getAqn(userID): """ Check if AQN folder was detected for userID