when you push the wronf change

This commit is contained in:
depreciate 2019-02-03 23:28:50 +10:30
parent e454cb2661
commit ccf655d529
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def getBeatmapTime(beatmapID):
return p return p
def incrementPlaytime(userID, gameMode=0, length=0, mode): def incrementPlaytime(userID, gameMode=0, length=0):
modeForDB = gameModes.getGameModeForDB(gameMode) modeForDB = gameModes.getGameModeForDB(gameMode)
result = glob.db.fetch("SELECT playtime_{gm} as playtime FROM users_stats WHERE id = %s".format(gm=modeForDB), [userID]) result = glob.db.fetch("SELECT playtime_{gm} as playtime FROM users_stats WHERE id = %s".format(gm=modeForDB), [userID])
if result is not None: 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( "UPDATE users_stats SET replays_watched_{mode}=replays_watched_{mode}+1 WHERE id = %s LIMIT 1".format(
mode=mode), [userID]) mode=mode), [userID])
def getAqn(userID): def getAqn(userID):
""" """
Check if AQN folder was detected for userID Check if AQN folder was detected for userID