This commit is contained in:
depreciate 2019-01-05 19:57:01 +10:30
parent b47addfa39
commit 25963a8eb7

View File

@ -10,8 +10,8 @@ from common.log import logUtils as log
from common.ripple import passwordUtils, scoreUtils
from objects import glob
def logUserLog(log,fileMd5,userID, gameMode, acc):
glob.db.execute("INSERT INTO users_logs (user, log, time, game_mode, acc, beatmap_md5) VALUES (%s, %s, %s, %s, %s, %s)",[userID, log, int(time.time()), gameMode, acc, fileMd5])
def logUserLog(log,fileMd5,userID, gameMode, scoreid):
glob.db.execute("INSERT INTO users_logs (user, log, time, game_mode, scoreid, beatmap_md5) VALUES (%s, %s, %s, %s, %s, %s)",[userID, log, int(time.time()), gameMode, scoreid, fileMd5])
return True
def logUserLogX(log,fileMd5,userID, gameMode):
glob.db.execute("INSERT INTO users_logs (user, log, time, game_mode, beatmap_md5) VALUES (%s, %s, %s, %s, %s)",[userID, log, int(time.time()), gameMode, fileMd5])